blob: 516ef18a50d905f5e46d2e5fd1ccfd6de3d11dfd [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Lev Walkinaef10c32014-01-14 01:47:25 -08003# Generated by GNU Autoconf 2.69 for asn1c 0.9.24.
Lev Walkine7c4b962010-11-09 03:10:36 -08004#
5# Report bugs to <vlm@lionet.info>.
Lev Walkinf15320b2004-06-03 03:38:44 +00006#
Lev Walkinaef10c32014-01-14 01:47:25 -08007#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
Lev Walkinf15320b2004-06-03 03:38:44 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Lev Walkinaef10c32014-01-14 01:47:25 -080013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +000016
Lev Walkin4c776e52010-11-08 02:07:31 -080017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinaef10c32014-01-14 01:47:25 -080019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000020 emulate sh
21 NULLCMD=:
Lev Walkinb3751942012-09-02 19:36:47 -070022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Lev Walkinf15320b2004-06-03 03:38:44 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000025 setopt NO_GLOB_SUBST
26else
Lev Walkinaef10c32014-01-14 01:47:25 -080027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -080032esac
Lev Walkinf15320b2004-06-03 03:38:44 +000033fi
Lev Walkin4c776e52010-11-08 02:07:31 -080034
35
Lev Walkinb3751942012-09-02 19:36:47 -070036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Lev Walkinaef10c32014-01-14 01:47:25 -080043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Lev Walkinb3751942012-09-02 19:36:47 -070050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
Lev Walkinaef10c32014-01-14 01:47:25 -080060 case $arg in #(
Lev Walkinb3751942012-09-02 19:36:47 -070061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
Lev Walkinf15320b2004-06-03 03:38:44 +000074# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Lev Walkinb3751942012-09-02 19:36:47 -070076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
Lev Walkinf15320b2004-06-03 03:38:44 +000081fi
82
Lev Walkin27fd0b62007-08-27 23:57:45 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
Lev Walkin27fd0b62007-08-27 23:57:45 +000089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Lev Walkinaef10c32014-01-14 01:47:25 -080092as_myself=
93case $0 in #((
Lev Walkin27fd0b62007-08-27 23:57:45 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +000096for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -0800100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
Lev Walkin27fd0b62007-08-27 23:57:45 +0000102IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +0000103
Lev Walkin27fd0b62007-08-27 23:57:45 +0000104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
Lev Walkinb3751942012-09-02 19:36:47 -0700112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Lev Walkinaef10c32014-01-14 01:47:25 -0800113 exit 1
Lev Walkin27fd0b62007-08-27 23:57:45 +0000114fi
115
Lev Walkinaef10c32014-01-14 01:47:25 -0800116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Lev Walkin27fd0b62007-08-27 23:57:45 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
Lev Walkinb3751942012-09-02 19:36:47 -0700129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
Lev Walkin27fd0b62007-08-27 23:57:45 +0000133
Lev Walkinaef10c32014-01-14 01:47:25 -0800134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and vlm@lionet.info
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
Lev Walkin27fd0b62007-08-27 23:57:45 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
Lev Walkinaef10c32014-01-14 01:47:25 -0800443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000448
Lev Walkin27fd0b62007-08-27 23:57:45 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -0700453$as_echo X/"$0" |
Lev Walkin27fd0b62007-08-27 23:57:45 +0000454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
Lev Walkinaef10c32014-01-14 01:47:25 -0800468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
Lev Walkin27fd0b62007-08-27 23:57:45 +0000474
475
Lev Walkinaef10c32014-01-14 01:47:25 -0800476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Lev Walkin27fd0b62007-08-27 23:57:45 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
Lev Walkinf15320b2004-06-03 03:38:44 +0000485 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +0000486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
Lev Walkinf15320b2004-06-03 03:38:44 +0000490 N
Lev Walkin27fd0b62007-08-27 23:57:45 +0000491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Lev Walkinf15320b2004-06-03 03:38:44 +0000493 t loop
Lev Walkin27fd0b62007-08-27 23:57:45 +0000494 s/-\n.*//
Lev Walkinf15320b2004-06-03 03:38:44 +0000495 ' >$as_me.lineno &&
Lev Walkin27fd0b62007-08-27 23:57:45 +0000496 chmod +x "$as_me.lineno" ||
Lev Walkinaef10c32014-01-14 01:47:25 -0800497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Lev Walkinf15320b2004-06-03 03:38:44 +0000498
Lev Walkinaef10c32014-01-14 01:47:25 -0800499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
Lev Walkinf15320b2004-06-03 03:38:44 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
Lev Walkin27fd0b62007-08-27 23:57:45 +0000505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
Lev Walkinf15320b2004-06-03 03:38:44 +0000507 # Exit status is that of the last command.
508 exit
509}
510
Lev Walkin27fd0b62007-08-27 23:57:45 +0000511ECHO_C= ECHO_N= ECHO_T=
Lev Walkinaef10c32014-01-14 01:47:25 -0800512case `echo -n x` in #(((((
Lev Walkin27fd0b62007-08-27 23:57:45 +0000513-n*)
Lev Walkinaef10c32014-01-14 01:47:25 -0800514 case `echo 'xy\c'` in
Lev Walkin27fd0b62007-08-27 23:57:45 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Lev Walkinaef10c32014-01-14 01:47:25 -0800516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000519 esac;;
520*)
521 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +0000522esac
Lev Walkinf15320b2004-06-03 03:38:44 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +0000525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
Lev Walkinb3751942012-09-02 19:36:47 -0700529 mkdir conf$$.dir 2>/dev/null
Lev Walkin27fd0b62007-08-27 23:57:45 +0000530fi
Lev Walkinb3751942012-09-02 19:36:47 -0700531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Lev Walkinaef10c32014-01-14 01:47:25 -0800537 # In both cases, we have to default to `cp -pR'.
Lev Walkinb3751942012-09-02 19:36:47 -0700538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Lev Walkinaef10c32014-01-14 01:47:25 -0800539 as_ln_s='cp -pR'
Lev Walkinb3751942012-09-02 19:36:47 -0700540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
Lev Walkinaef10c32014-01-14 01:47:25 -0800543 as_ln_s='cp -pR'
Lev Walkinb3751942012-09-02 19:36:47 -0700544 fi
Lev Walkinf15320b2004-06-03 03:38:44 +0000545else
Lev Walkinaef10c32014-01-14 01:47:25 -0800546 as_ln_s='cp -pR'
Lev Walkinf15320b2004-06-03 03:38:44 +0000547fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +0000550
551if mkdir -p . 2>/dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -0800552 as_mkdir_p='mkdir -p "$as_dir"'
Lev Walkinf15320b2004-06-03 03:38:44 +0000553else
Lev Walkin8e8b5482004-06-17 23:42:48 +0000554 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +0000555 as_mkdir_p=false
556fi
557
Lev Walkinaef10c32014-01-14 01:47:25 -0800558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
Lev Walkinf15320b2004-06-03 03:38:44 +0000560
561# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000563
564# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000566
Lev Walkin8e8b5482004-06-17 23:42:48 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
Lev Walkin4c776e52010-11-08 02:07:31 -0800569
Lev Walkinaef10c32014-01-14 01:47:25 -0800570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
Lev Walkin27fd0b62007-08-27 23:57:45 +0000572
Lev Walkinf15320b2004-06-03 03:38:44 +0000573# Name of the host.
Lev Walkinaef10c32014-01-14 01:47:25 -0800574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Lev Walkinf15320b2004-06-03 03:38:44 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
Lev Walkinf15320b2004-06-03 03:38:44 +0000578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
Lev Walkin27fd0b62007-08-27 23:57:45 +0000582ac_clean_files=
Lev Walkinf15320b2004-06-03 03:38:44 +0000583ac_config_libobj_dir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000584LIBOBJS=
Lev Walkinf15320b2004-06-03 03:38:44 +0000585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
Lev Walkinf15320b2004-06-03 03:38:44 +0000589
Lev Walkinf15320b2004-06-03 03:38:44 +0000590# Identity of this package.
Lev Walkine7c4b962010-11-09 03:10:36 -0800591PACKAGE_NAME='asn1c'
592PACKAGE_TARNAME='asn1c'
Lev Walkind8ca7ce2013-03-16 07:07:26 -0700593PACKAGE_VERSION='0.9.24'
594PACKAGE_STRING='asn1c 0.9.24'
Lev Walkine7c4b962010-11-09 03:10:36 -0800595PACKAGE_BUGREPORT='vlm@lionet.info'
Lev Walkinaef10c32014-01-14 01:47:25 -0800596PACKAGE_URL=''
Lev Walkinf15320b2004-06-03 03:38:44 +0000597
Lev Walkinf15320b2004-06-03 03:38:44 +0000598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
Lev Walkin4c776e52010-11-08 02:07:31 -0800601#ifdef HAVE_SYS_TYPES_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000602# include <sys/types.h>
603#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800604#ifdef HAVE_SYS_STAT_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000605# include <sys/stat.h>
606#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800607#ifdef STDC_HEADERS
Lev Walkinf15320b2004-06-03 03:38:44 +0000608# include <stdlib.h>
609# include <stddef.h>
610#else
Lev Walkin4c776e52010-11-08 02:07:31 -0800611# ifdef HAVE_STDLIB_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000612# include <stdlib.h>
613# endif
614#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000617# include <memory.h>
618# endif
619# include <string.h>
620#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800621#ifdef HAVE_STRINGS_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000622# include <strings.h>
623#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800624#ifdef HAVE_INTTYPES_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000625# include <inttypes.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +0000626#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800627#ifdef HAVE_STDINT_H
Lev Walkin27fd0b62007-08-27 23:57:45 +0000628# include <stdint.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000629#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800630#ifdef HAVE_UNISTD_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000631# include <unistd.h>
632#endif"
633
Lev Walkinb3751942012-09-02 19:36:47 -0700634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
Lev Walkin27fd0b62007-08-27 23:57:45 +0000637LIBOBJS
Lev Walkinb3751942012-09-02 19:36:47 -0700638ADD_CFLAGS
639LEXLIB
640LEX_OUTPUT_ROOT
641LEX
642YFLAGS
643YACC
644CPP
645OTOOL64
646OTOOL
647LIPO
648NMEDIT
649DSYMUTIL
Lev Walkinaef10c32014-01-14 01:47:25 -0800650MANIFEST_TOOL
Lev Walkinb3751942012-09-02 19:36:47 -0700651RANLIB
Lev Walkinaef10c32014-01-14 01:47:25 -0800652ac_ct_AR
Lev Walkinb3751942012-09-02 19:36:47 -0700653AR
Lev Walkinaef10c32014-01-14 01:47:25 -0800654DLLTOOL
655OBJDUMP
Lev Walkinb3751942012-09-02 19:36:47 -0700656LN_S
657NM
658ac_ct_DUMPBIN
659DUMPBIN
660LD
661FGREP
662EGREP
663GREP
664SED
665am__fastdepCC_FALSE
666am__fastdepCC_TRUE
667CCDEPMODE
668AMDEPBACKSLASH
669AMDEP_FALSE
670AMDEP_TRUE
671am__quote
672am__include
673DEPDIR
674OBJEXT
675EXEEXT
676ac_ct_CC
677CPPFLAGS
678LDFLAGS
679CFLAGS
680CC
681host_os
682host_vendor
683host_cpu
684host
685build_os
686build_vendor
687build_cpu
688build
689LIBTOOL
690am__untar
691am__tar
692AMTAR
693am__leading_dot
694SET_MAKE
695AWK
696mkdir_p
697MKDIR_P
698INSTALL_STRIP_PROGRAM
699STRIP
700install_sh
701MAKEINFO
702AUTOHEADER
703AUTOMAKE
704AUTOCONF
705ACLOCAL
706VERSION
707PACKAGE
708CYGPATH_W
709am__isrc
710INSTALL_DATA
711INSTALL_SCRIPT
712INSTALL_PROGRAM
713target_alias
714host_alias
715build_alias
716LIBS
717ECHO_T
718ECHO_N
719ECHO_C
720DEFS
721mandir
722localedir
723libdir
724psdir
725pdfdir
726dvidir
727htmldir
728infodir
729docdir
730oldincludedir
731includedir
732localstatedir
733sharedstatedir
734sysconfdir
735datadir
736datarootdir
737libexecdir
738sbindir
739bindir
740program_transform_name
741prefix
742exec_prefix
Lev Walkinaef10c32014-01-14 01:47:25 -0800743PACKAGE_URL
Lev Walkinb3751942012-09-02 19:36:47 -0700744PACKAGE_BUGREPORT
745PACKAGE_STRING
746PACKAGE_VERSION
747PACKAGE_TARNAME
748PACKAGE_NAME
749PATH_SEPARATOR
750SHELL'
Lev Walkinf15320b2004-06-03 03:38:44 +0000751ac_subst_files=''
Lev Walkinb3751942012-09-02 19:36:47 -0700752ac_user_opts='
753enable_option_checking
754enable_shared
755enable_static
756with_pic
757enable_fast_install
758enable_dependency_tracking
759with_gnu_ld
Lev Walkinaef10c32014-01-14 01:47:25 -0800760with_sysroot
Lev Walkinb3751942012-09-02 19:36:47 -0700761enable_libtool_lock
762enable_Werror
763'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000764 ac_precious_vars='build_alias
765host_alias
766target_alias
767CC
768CFLAGS
769LDFLAGS
Lev Walkin4c776e52010-11-08 02:07:31 -0800770LIBS
Lev Walkin27fd0b62007-08-27 23:57:45 +0000771CPPFLAGS
772CPP
Lev Walkin27fd0b62007-08-27 23:57:45 +0000773YACC
774YFLAGS'
775
Lev Walkinf15320b2004-06-03 03:38:44 +0000776
777# Initialize some variables set by options.
778ac_init_help=
779ac_init_version=false
Lev Walkinb3751942012-09-02 19:36:47 -0700780ac_unrecognized_opts=
781ac_unrecognized_sep=
Lev Walkinf15320b2004-06-03 03:38:44 +0000782# The variables have the same names as the options, with
783# dashes changed to underlines.
784cache_file=/dev/null
785exec_prefix=NONE
786no_create=
787no_recursion=
788prefix=NONE
789program_prefix=NONE
790program_suffix=NONE
791program_transform_name=s,x,x,
792silent=
793site=
794srcdir=
795verbose=
796x_includes=NONE
797x_libraries=NONE
798
799# Installation directory options.
800# These are left unexpanded so users can "make install exec_prefix=/foo"
801# and all the variables that are supposed to be based on exec_prefix
802# by default will actually change.
803# Use braces instead of parens because sh, perl, etc. also accept them.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000804# (The list follows the same order as the GNU Coding Standards.)
Lev Walkinf15320b2004-06-03 03:38:44 +0000805bindir='${exec_prefix}/bin'
806sbindir='${exec_prefix}/sbin'
807libexecdir='${exec_prefix}/libexec'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000808datarootdir='${prefix}/share'
809datadir='${datarootdir}'
Lev Walkinf15320b2004-06-03 03:38:44 +0000810sysconfdir='${prefix}/etc'
811sharedstatedir='${prefix}/com'
812localstatedir='${prefix}/var'
Lev Walkinf15320b2004-06-03 03:38:44 +0000813includedir='${prefix}/include'
814oldincludedir='/usr/include'
Lev Walkine7c4b962010-11-09 03:10:36 -0800815docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000816infodir='${datarootdir}/info'
817htmldir='${docdir}'
818dvidir='${docdir}'
819pdfdir='${docdir}'
820psdir='${docdir}'
821libdir='${exec_prefix}/lib'
822localedir='${datarootdir}/locale'
823mandir='${datarootdir}/man'
Lev Walkinf15320b2004-06-03 03:38:44 +0000824
825ac_prev=
Lev Walkin27fd0b62007-08-27 23:57:45 +0000826ac_dashdash=
Lev Walkinf15320b2004-06-03 03:38:44 +0000827for ac_option
828do
829 # If the previous option needs an argument, assign it.
830 if test -n "$ac_prev"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +0000831 eval $ac_prev=\$ac_option
Lev Walkinf15320b2004-06-03 03:38:44 +0000832 ac_prev=
833 continue
834 fi
835
Lev Walkin27fd0b62007-08-27 23:57:45 +0000836 case $ac_option in
Lev Walkinaef10c32014-01-14 01:47:25 -0800837 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 *=) ac_optarg= ;;
839 *) ac_optarg=yes ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000840 esac
Lev Walkinf15320b2004-06-03 03:38:44 +0000841
842 # Accept the important Cygnus configure options, so we can diagnose typos.
843
Lev Walkin27fd0b62007-08-27 23:57:45 +0000844 case $ac_dashdash$ac_option in
845 --)
846 ac_dashdash=yes ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000847
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
852
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
857
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
864
865 --config-cache | -C)
866 cache_file=config.cache ;;
867
Lev Walkin27fd0b62007-08-27 23:57:45 +0000868 -datadir | --datadir | --datadi | --datad)
Lev Walkinf15320b2004-06-03 03:38:44 +0000869 ac_prev=datadir ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Lev Walkinf15320b2004-06-03 03:38:44 +0000871 datadir=$ac_optarg ;;
872
Lev Walkin27fd0b62007-08-27 23:57:45 +0000873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
879
Lev Walkinf15320b2004-06-03 03:38:44 +0000880 -disable-* | --disable-*)
Lev Walkinb3751942012-09-02 19:36:47 -0700881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +0000882 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -0700883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Lev Walkinaef10c32014-01-14 01:47:25 -0800884 as_fn_error $? "invalid feature name: $ac_useropt"
Lev Walkinb3751942012-09-02 19:36:47 -0700885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
888 *"
889"enable_$ac_useropt"
890"*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000895
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
900
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000905
906 -enable-* | --enable-*)
Lev Walkinb3751942012-09-02 19:36:47 -0700907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +0000908 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -0700909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Lev Walkinaef10c32014-01-14 01:47:25 -0800910 as_fn_error $? "invalid feature name: $ac_useropt"
Lev Walkinb3751942012-09-02 19:36:47 -0700911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915"enable_$ac_useropt"
916"*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000921
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
930
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
934
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
941
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
946
Lev Walkin27fd0b62007-08-27 23:57:45 +0000947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
952
Lev Walkinf15320b2004-06-03 03:38:44 +0000953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
959
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
964
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
969
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
976
Lev Walkin27fd0b62007-08-27 23:57:45 +0000977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
981
Lev Walkinf15320b2004-06-03 03:38:44 +0000982 -localstatedir | --localstatedir | --localstatedi | --localstated \
Lev Walkin27fd0b62007-08-27 23:57:45 +0000983 | --localstate | --localstat | --localsta | --localst | --locals)
Lev Walkinf15320b2004-06-03 03:38:44 +0000984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Lev Walkin27fd0b62007-08-27 23:57:45 +0000986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Lev Walkinf15320b2004-06-03 03:38:44 +0000987 localstatedir=$ac_optarg ;;
988
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
993
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
997
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1001
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1005
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1014
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1019
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1026
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1033
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1050
Lev Walkin27fd0b62007-08-27 23:57:45 +00001051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1055
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1060
Lev Walkinf15320b2004-06-03 03:38:44 +00001061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1064
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 ac_prev=sbindir ;;
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 | --sbi=* | --sb=*)
1069 sbindir=$ac_optarg ;;
1070
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1074 | --sha | --sh)
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 | --sha=* | --sh=*)
1080 sharedstatedir=$ac_optarg ;;
1081
1082 -site | --site | --sit)
1083 ac_prev=site ;;
1084 -site=* | --site=* | --sit=*)
1085 site=$ac_optarg ;;
1086
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 ac_prev=srcdir ;;
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1091
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1098
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1103
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 verbose=yes ;;
1106
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1109
1110 -with-* | --with-*)
Lev Walkinb3751942012-09-02 19:36:47 -07001111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001112 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -07001113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Lev Walkinaef10c32014-01-14 01:47:25 -08001114 as_fn_error $? "invalid package name: $ac_useropt"
Lev Walkinb3751942012-09-02 19:36:47 -07001115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1118 *"
1119"with_$ac_useropt"
1120"*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001125
1126 -without-* | --without-*)
Lev Walkinb3751942012-09-02 19:36:47 -07001127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001128 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -07001129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Lev Walkinaef10c32014-01-14 01:47:25 -08001130 as_fn_error $? "invalid package name: $ac_useropt"
Lev Walkinb3751942012-09-02 19:36:47 -07001131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135"with_$ac_useropt"
1136"*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=no ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001141
1142 --x)
1143 # Obsolete; use --with-x.
1144 with_x=yes ;;
1145
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1152
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1159
Lev Walkinaef10c32014-01-14 01:47:25 -08001160 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1161Try \`$0 --help' for more information"
Lev Walkinf15320b2004-06-03 03:38:44 +00001162 ;;
1163
1164 *=*)
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
Lev Walkinaef10c32014-01-14 01:47:25 -08001167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001171 eval $ac_envvar=\$ac_optarg
Lev Walkinf15320b2004-06-03 03:38:44 +00001172 export $ac_envvar ;;
1173
1174 *)
1175 # FIXME: should be removed in autoconf 3.0.
Lev Walkinb3751942012-09-02 19:36:47 -07001176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Lev Walkinb3751942012-09-02 19:36:47 -07001178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Lev Walkinaef10c32014-01-14 01:47:25 -08001179 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Lev Walkinf15320b2004-06-03 03:38:44 +00001180 ;;
1181
1182 esac
1183done
1184
1185if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Lev Walkinaef10c32014-01-14 01:47:25 -08001187 as_fn_error $? "missing argument to $ac_option"
Lev Walkinf15320b2004-06-03 03:38:44 +00001188fi
1189
Lev Walkinb3751942012-09-02 19:36:47 -07001190if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1192 no) ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08001193 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Lev Walkinb3751942012-09-02 19:36:47 -07001194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 esac
1196fi
1197
1198# Check all directory arguments for consistency.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001199for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
Lev Walkinf15320b2004-06-03 03:38:44 +00001203do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001204 eval ac_val=\$$ac_var
Lev Walkinb3751942012-09-02 19:36:47 -07001205 # Remove trailing slashes.
1206 case $ac_val in
1207 */ )
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1210 esac
1211 # Be sure to have absolute directory names.
Lev Walkinf15320b2004-06-03 03:38:44 +00001212 case $ac_val in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001215 esac
Lev Walkinaef10c32014-01-14 01:47:25 -08001216 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Lev Walkinf15320b2004-06-03 03:38:44 +00001217done
1218
1219# There might be people who depend on the old broken behavior: `$host'
1220# used to hold the argument of --host etc.
1221# FIXME: To remove some day.
1222build=$build_alias
1223host=$host_alias
1224target=$target_alias
1225
1226# FIXME: To remove some day.
1227if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
Lev Walkinf15320b2004-06-03 03:38:44 +00001230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233fi
1234
1235ac_tool_prefix=
1236test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238test "$silent" = yes && exec 6>/dev/null
1239
1240
Lev Walkin27fd0b62007-08-27 23:57:45 +00001241ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242ac_ls_di=`ls -di .` &&
1243ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Lev Walkinaef10c32014-01-14 01:47:25 -08001244 as_fn_error $? "working directory cannot be determined"
Lev Walkin27fd0b62007-08-27 23:57:45 +00001245test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Lev Walkinaef10c32014-01-14 01:47:25 -08001246 as_fn_error $? "pwd does not report name of working directory"
Lev Walkin27fd0b62007-08-27 23:57:45 +00001247
1248
Lev Walkinf15320b2004-06-03 03:38:44 +00001249# Find the source files, if location was not specified.
1250if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
Lev Walkin27fd0b62007-08-27 23:57:45 +00001252 # Try the directory containing this script, then the parent directory.
Lev Walkinb3751942012-09-02 19:36:47 -07001253 ac_confdir=`$as_dirname -- "$as_myself" ||
1254$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$as_myself" : 'X\(//\)[^/]' \| \
1256 X"$as_myself" : 'X\(//\)$' \| \
1257 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258$as_echo X"$as_myself" |
Lev Walkin27fd0b62007-08-27 23:57:45 +00001259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)[^/].*/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\).*/{
1272 s//\1/
1273 q
1274 }
1275 s/.*/./; q'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001276 srcdir=$ac_confdir
Lev Walkin27fd0b62007-08-27 23:57:45 +00001277 if test ! -r "$srcdir/$ac_unique_file"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001278 srcdir=..
1279 fi
1280else
1281 ac_srcdir_defaulted=no
1282fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001283if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Lev Walkinaef10c32014-01-14 01:47:25 -08001285 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Lev Walkinf15320b2004-06-03 03:38:44 +00001286fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001287ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288ac_abs_confdir=`(
Lev Walkinaef10c32014-01-14 01:47:25 -08001289 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Lev Walkin27fd0b62007-08-27 23:57:45 +00001290 pwd)`
1291# When building in place, set srcdir=.
1292if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 srcdir=.
1294fi
1295# Remove unnecessary trailing slashes from srcdir.
1296# Double slashes in file names in object file debugging info
1297# mess up M-x gdb in Emacs.
1298case $srcdir in
1299*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300esac
1301for ac_var in $ac_precious_vars; do
1302 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_${ac_var}_value=\$${ac_var}
1304 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306done
Lev Walkinf15320b2004-06-03 03:38:44 +00001307
1308#
1309# Report the --help message.
1310#
1311if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1314 cat <<_ACEOF
Lev Walkind8ca7ce2013-03-16 07:07:26 -07001315\`configure' configures asn1c 0.9.24 to adapt to many kinds of systems.
Lev Walkinf15320b2004-06-03 03:38:44 +00001316
1317Usage: $0 [OPTION]... [VAR=VALUE]...
1318
1319To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320VAR=VALUE. See below for descriptions of some of the useful variables.
1321
1322Defaults for the options are specified in brackets.
1323
1324Configuration:
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
Lev Walkinaef10c32014-01-14 01:47:25 -08001329 -q, --quiet, --silent do not print \`checking ...' messages
Lev Walkinf15320b2004-06-03 03:38:44 +00001330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1334
Lev Walkinf15320b2004-06-03 03:38:44 +00001335Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
Lev Walkinb3751942012-09-02 19:36:47 -07001337 [$ac_default_prefix]
Lev Walkinf15320b2004-06-03 03:38:44 +00001338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Lev Walkinb3751942012-09-02 19:36:47 -07001339 [PREFIX]
Lev Walkinf15320b2004-06-03 03:38:44 +00001340
1341By default, \`make install' will install all the files in
1342\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344for instance \`--prefix=\$HOME'.
1345
1346For better control, use the options below.
1347
1348Fine tuning of the installation directories:
Lev Walkinb3751942012-09-02 19:36:47 -07001349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --libdir=DIR object code libraries [EPREFIX/lib]
1356 --includedir=DIR C header files [PREFIX/include]
1357 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1358 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1359 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1360 --infodir=DIR info documentation [DATAROOTDIR/info]
1361 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1362 --mandir=DIR man documentation [DATAROOTDIR/man]
1363 --docdir=DIR documentation root [DATAROOTDIR/doc/asn1c]
1364 --htmldir=DIR html documentation [DOCDIR]
1365 --dvidir=DIR dvi documentation [DOCDIR]
1366 --pdfdir=DIR pdf documentation [DOCDIR]
1367 --psdir=DIR ps documentation [DOCDIR]
Lev Walkinf15320b2004-06-03 03:38:44 +00001368_ACEOF
1369
1370 cat <<\_ACEOF
1371
1372Program names:
1373 --program-prefix=PREFIX prepend PREFIX to installed program names
1374 --program-suffix=SUFFIX append SUFFIX to installed program names
1375 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1376
1377System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Lev Walkinf15320b2004-06-03 03:38:44 +00001380_ACEOF
1381fi
1382
1383if test -n "$ac_init_help"; then
Lev Walkine7c4b962010-11-09 03:10:36 -08001384 case $ac_init_help in
Lev Walkind8ca7ce2013-03-16 07:07:26 -07001385 short | recursive ) echo "Configuration of asn1c 0.9.24:";;
Lev Walkine7c4b962010-11-09 03:10:36 -08001386 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001387 cat <<\_ACEOF
1388
1389Optional Features:
Lev Walkinb3751942012-09-02 19:36:47 -07001390 --disable-option-checking ignore unrecognized --enable/--with options
Lev Walkinf15320b2004-06-03 03:38:44 +00001391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Lev Walkin27fd0b62007-08-27 23:57:45 +00001393 --enable-shared[=PKGS] build shared libraries [default=yes]
1394 --enable-static[=PKGS] build static libraries [default=yes]
Lev Walkin8e8b5482004-06-17 23:42:48 +00001395 --enable-fast-install[=PKGS]
1396 optimize for fast installation [default=yes]
1397 --disable-dependency-tracking speeds up one-time build
1398 --enable-dependency-tracking do not reject slow dependency extractors
Lev Walkinf15320b2004-06-03 03:38:44 +00001399 --disable-libtool-lock avoid locking (might break parallel builds)
Lev Walkinf15320b2004-06-03 03:38:44 +00001400 --enable-Werror abort compilation after any C compiler warning
1401
1402Optional Packages:
1403 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1404 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Lev Walkin8e8b5482004-06-17 23:42:48 +00001405 --with-pic try to use only PIC/non-PIC objects [default=use
1406 both]
Lev Walkin4da95cf2010-10-16 02:46:32 -07001407 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Lev Walkinaef10c32014-01-14 01:47:25 -08001408 --with-sysroot=DIR Search for dependent libraries within DIR
1409 (or the compiler's sysroot if not specified).
Lev Walkinf15320b2004-06-03 03:38:44 +00001410
1411Some influential environment variables:
1412 CC C compiler command
1413 CFLAGS C compiler flags
1414 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1415 nonstandard directory <lib dir>
Lev Walkin4c776e52010-11-08 02:07:31 -08001416 LIBS libraries to pass to the linker, e.g. -l<library>
Lev Walkinaef10c32014-01-14 01:47:25 -08001417 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Lev Walkin27fd0b62007-08-27 23:57:45 +00001418 you have headers in a nonstandard directory <include dir>
Lev Walkinf15320b2004-06-03 03:38:44 +00001419 CPP C preprocessor
Lev Walkinaef10c32014-01-14 01:47:25 -08001420 YACC The `Yet Another Compiler Compiler' implementation to use.
1421 Defaults to the first program found out of: `bison -y', `byacc',
1422 `yacc'.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001423 YFLAGS The list of arguments that will be passed by default to $YACC.
1424 This script will default YFLAGS to the empty string to avoid a
1425 default value of `-d' given by some make applications.
Lev Walkinf15320b2004-06-03 03:38:44 +00001426
1427Use these variables to override the choices made by `configure' or to help
1428it to find libraries and programs with nonstandard names/locations.
1429
Lev Walkine7c4b962010-11-09 03:10:36 -08001430Report bugs to <vlm@lionet.info>.
Lev Walkinf15320b2004-06-03 03:38:44 +00001431_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001432ac_status=$?
Lev Walkinf15320b2004-06-03 03:38:44 +00001433fi
1434
1435if test "$ac_init_help" = "recursive"; then
1436 # If there are subdirs, report their specific --help.
Lev Walkinf15320b2004-06-03 03:38:44 +00001437 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Lev Walkinb3751942012-09-02 19:36:47 -07001438 test -d "$ac_dir" ||
1439 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1440 continue
Lev Walkinf15320b2004-06-03 03:38:44 +00001441 ac_builddir=.
1442
Lev Walkin27fd0b62007-08-27 23:57:45 +00001443case "$ac_dir" in
1444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445*)
Lev Walkinb3751942012-09-02 19:36:47 -07001446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001447 # A ".." for each directory in $ac_dir_suffix.
Lev Walkinb3751942012-09-02 19:36:47 -07001448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001449 case $ac_top_builddir_sub in
1450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1452 esac ;;
1453esac
1454ac_abs_top_builddir=$ac_pwd
1455ac_abs_builddir=$ac_pwd$ac_dir_suffix
1456# for backward compatibility:
1457ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +00001458
1459case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001460 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +00001461 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001462 ac_top_srcdir=$ac_top_builddir_sub
1463 ac_abs_top_srcdir=$ac_pwd ;;
1464 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +00001465 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001466 ac_top_srcdir=$srcdir
1467 ac_abs_top_srcdir=$srcdir ;;
1468 *) # Relative name.
1469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1470 ac_top_srcdir=$ac_top_build_prefix$srcdir
1471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001472esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001473ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +00001474
Lev Walkin27fd0b62007-08-27 23:57:45 +00001475 cd "$ac_dir" || { ac_status=$?; continue; }
1476 # Check for guested configure.
1477 if test -f "$ac_srcdir/configure.gnu"; then
1478 echo &&
1479 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1480 elif test -f "$ac_srcdir/configure"; then
1481 echo &&
1482 $SHELL "$ac_srcdir/configure" --help=recursive
Lev Walkinf15320b2004-06-03 03:38:44 +00001483 else
Lev Walkinb3751942012-09-02 19:36:47 -07001484 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Lev Walkin27fd0b62007-08-27 23:57:45 +00001485 fi || ac_status=$?
1486 cd "$ac_pwd" || { ac_status=$?; break; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001487 done
1488fi
1489
Lev Walkin27fd0b62007-08-27 23:57:45 +00001490test -n "$ac_init_help" && exit $ac_status
Lev Walkinf15320b2004-06-03 03:38:44 +00001491if $ac_init_version; then
1492 cat <<\_ACEOF
Lev Walkind8ca7ce2013-03-16 07:07:26 -07001493asn1c configure 0.9.24
Lev Walkinaef10c32014-01-14 01:47:25 -08001494generated by GNU Autoconf 2.69
Lev Walkinf15320b2004-06-03 03:38:44 +00001495
Lev Walkinaef10c32014-01-14 01:47:25 -08001496Copyright (C) 2012 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00001497This configure script is free software; the Free Software Foundation
1498gives unlimited permission to copy, distribute and modify it.
1499_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001500 exit
Lev Walkinf15320b2004-06-03 03:38:44 +00001501fi
Lev Walkinaef10c32014-01-14 01:47:25 -08001502
1503## ------------------------ ##
1504## Autoconf initialization. ##
1505## ------------------------ ##
1506
1507# ac_fn_c_try_compile LINENO
1508# --------------------------
1509# Try to compile conftest.$ac_ext, and return whether this succeeded.
1510ac_fn_c_try_compile ()
1511{
1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513 rm -f conftest.$ac_objext
1514 if { { ac_try="$ac_compile"
1515case "(($ac_try" in
1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517 *) ac_try_echo=$ac_try;;
1518esac
1519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520$as_echo "$ac_try_echo"; } >&5
1521 (eval "$ac_compile") 2>conftest.err
1522 ac_status=$?
1523 if test -s conftest.err; then
1524 grep -v '^ *+' conftest.err >conftest.er1
1525 cat conftest.er1 >&5
1526 mv -f conftest.er1 conftest.err
1527 fi
1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529 test $ac_status = 0; } && {
1530 test -z "$ac_c_werror_flag" ||
1531 test ! -s conftest.err
1532 } && test -s conftest.$ac_objext; then :
1533 ac_retval=0
1534else
1535 $as_echo "$as_me: failed program was:" >&5
1536sed 's/^/| /' conftest.$ac_ext >&5
1537
1538 ac_retval=1
1539fi
1540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1541 as_fn_set_status $ac_retval
1542
1543} # ac_fn_c_try_compile
1544
1545# ac_fn_c_try_link LINENO
1546# -----------------------
1547# Try to link conftest.$ac_ext, and return whether this succeeded.
1548ac_fn_c_try_link ()
1549{
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 rm -f conftest.$ac_objext conftest$ac_exeext
1552 if { { ac_try="$ac_link"
1553case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556esac
1557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558$as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_link") 2>conftest.err
1560 ac_status=$?
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1565 fi
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } && {
1568 test -z "$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1570 } && test -s conftest$ac_exeext && {
1571 test "$cross_compiling" = yes ||
1572 test -x conftest$ac_exeext
1573 }; then :
1574 ac_retval=0
1575else
1576 $as_echo "$as_me: failed program was:" >&5
1577sed 's/^/| /' conftest.$ac_ext >&5
1578
1579 ac_retval=1
1580fi
1581 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1582 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1583 # interfere with the next link command; also delete a directory that is
1584 # left behind by Apple's compiler. We do this before executing the actions.
1585 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1588
1589} # ac_fn_c_try_link
1590
1591# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1592# -------------------------------------------------------
1593# Tests whether HEADER exists and can be compiled using the include files in
1594# INCLUDES, setting the cache variable VAR accordingly.
1595ac_fn_c_check_header_compile ()
1596{
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599$as_echo_n "checking for $2... " >&6; }
1600if eval \${$3+:} false; then :
1601 $as_echo_n "(cached) " >&6
1602else
1603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604/* end confdefs.h. */
1605$4
1606#include <$2>
1607_ACEOF
1608if ac_fn_c_try_compile "$LINENO"; then :
1609 eval "$3=yes"
1610else
1611 eval "$3=no"
1612fi
1613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1614fi
1615eval ac_res=\$$3
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1617$as_echo "$ac_res" >&6; }
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619
1620} # ac_fn_c_check_header_compile
1621
1622# ac_fn_c_try_cpp LINENO
1623# ----------------------
1624# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1625ac_fn_c_try_cpp ()
1626{
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 if { { ac_try="$ac_cpp conftest.$ac_ext"
1629case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632esac
1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634$as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } > conftest.i && {
1644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 }; then :
1647 ac_retval=0
1648else
1649 $as_echo "$as_me: failed program was:" >&5
1650sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=1
1653fi
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1656
1657} # ac_fn_c_try_cpp
1658
1659# ac_fn_c_try_run LINENO
1660# ----------------------
1661# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1662# that executables *can* be run.
1663ac_fn_c_try_run ()
1664{
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if { { ac_try="$ac_link"
1667case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>&5
1674 ac_status=$?
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1677 { { case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_try") 2>&5
1684 ac_status=$?
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; }; }; then :
1687 ac_retval=0
1688else
1689 $as_echo "$as_me: program exited with status $ac_status" >&5
1690 $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=$ac_status
1694fi
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699} # ac_fn_c_try_run
1700
1701# ac_fn_c_check_func LINENO FUNC VAR
1702# ----------------------------------
1703# Tests whether FUNC exists, setting the cache variable VAR accordingly
1704ac_fn_c_check_func ()
1705{
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708$as_echo_n "checking for $2... " >&6; }
1709if eval \${$3+:} false; then :
1710 $as_echo_n "(cached) " >&6
1711else
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713/* end confdefs.h. */
1714/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1716#define $2 innocuous_$2
1717
1718/* System header to define __stub macros and hopefully few prototypes,
1719 which can conflict with char $2 (); below.
1720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1721 <limits.h> exists even on freestanding compilers. */
1722
1723#ifdef __STDC__
1724# include <limits.h>
1725#else
1726# include <assert.h>
1727#endif
1728
1729#undef $2
1730
1731/* Override any GCC internal prototype to avoid an error.
1732 Use char because int might match the return type of a GCC
1733 builtin and then its argument prototype would still apply. */
1734#ifdef __cplusplus
1735extern "C"
1736#endif
1737char $2 ();
1738/* The GNU C library defines this for functions which it implements
1739 to always fail with ENOSYS. Some functions are actually named
1740 something starting with __ and the normal name is an alias. */
1741#if defined __stub_$2 || defined __stub___$2
1742choke me
1743#endif
1744
1745int
1746main ()
1747{
1748return $2 ();
1749 ;
1750 return 0;
1751}
1752_ACEOF
1753if ac_fn_c_try_link "$LINENO"; then :
1754 eval "$3=yes"
1755else
1756 eval "$3=no"
1757fi
1758rm -f core conftest.err conftest.$ac_objext \
1759 conftest$ac_exeext conftest.$ac_ext
1760fi
1761eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763$as_echo "$ac_res" >&6; }
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766} # ac_fn_c_check_func
1767
1768# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1769# -------------------------------------------------------
1770# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1771# the include files in INCLUDES and setting the cache variable VAR
1772# accordingly.
1773ac_fn_c_check_header_mongrel ()
1774{
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if eval \${$3+:} false; then :
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
1779if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1781fi
1782eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784$as_echo "$ac_res" >&6; }
1785else
1786 # Is the header compilable?
1787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1788$as_echo_n "checking $2 usability... " >&6; }
1789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h. */
1791$4
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795 ac_header_compiler=yes
1796else
1797 ac_header_compiler=no
1798fi
1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1801$as_echo "$ac_header_compiler" >&6; }
1802
1803# Is the header present?
1804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1805$as_echo_n "checking $2 presence... " >&6; }
1806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h. */
1808#include <$2>
1809_ACEOF
1810if ac_fn_c_try_cpp "$LINENO"; then :
1811 ac_header_preproc=yes
1812else
1813 ac_header_preproc=no
1814fi
1815rm -f conftest.err conftest.i conftest.$ac_ext
1816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1817$as_echo "$ac_header_preproc" >&6; }
1818
1819# So? What about this header?
1820case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1821 yes:no: )
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1823$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 ;;
1827 no:yes:* )
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1829$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1831$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1833$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1835$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1838( $as_echo "## ------------------------------ ##
1839## Report this to vlm@lionet.info ##
1840## ------------------------------ ##"
1841 ) | sed "s/^/$as_me: WARNING: /" >&2
1842 ;;
1843esac
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845$as_echo_n "checking for $2... " >&6; }
1846if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848else
1849 eval "$3=\$ac_header_compiler"
1850fi
1851eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853$as_echo "$ac_res" >&6; }
1854fi
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856
1857} # ac_fn_c_check_header_mongrel
1858
1859# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1860# -------------------------------------------
1861# Tests whether TYPE exists after having included INCLUDES, setting cache
1862# variable VAR accordingly.
1863ac_fn_c_check_type ()
1864{
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867$as_echo_n "checking for $2... " >&6; }
1868if eval \${$3+:} false; then :
1869 $as_echo_n "(cached) " >&6
1870else
1871 eval "$3=no"
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h. */
1874$4
1875int
1876main ()
1877{
1878if (sizeof ($2))
1879 return 0;
1880 ;
1881 return 0;
1882}
1883_ACEOF
1884if ac_fn_c_try_compile "$LINENO"; then :
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886/* end confdefs.h. */
1887$4
1888int
1889main ()
1890{
1891if (sizeof (($2)))
1892 return 0;
1893 ;
1894 return 0;
1895}
1896_ACEOF
1897if ac_fn_c_try_compile "$LINENO"; then :
1898
1899else
1900 eval "$3=yes"
1901fi
1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903fi
1904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905fi
1906eval ac_res=\$$3
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908$as_echo "$ac_res" >&6; }
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910
1911} # ac_fn_c_check_type
Lev Walkin27fd0b62007-08-27 23:57:45 +00001912cat >config.log <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00001913This file contains any messages produced by compilers while
1914running configure, to aid debugging if configure makes a mistake.
1915
Lev Walkind8ca7ce2013-03-16 07:07:26 -07001916It was created by asn1c $as_me 0.9.24, which was
Lev Walkinaef10c32014-01-14 01:47:25 -08001917generated by GNU Autoconf 2.69. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +00001918
1919 $ $0 $@
1920
1921_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001922exec 5>>config.log
Lev Walkinf15320b2004-06-03 03:38:44 +00001923{
1924cat <<_ASUNAME
1925## --------- ##
1926## Platform. ##
1927## --------- ##
1928
1929hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1930uname -m = `(uname -m) 2>/dev/null || echo unknown`
1931uname -r = `(uname -r) 2>/dev/null || echo unknown`
1932uname -s = `(uname -s) 2>/dev/null || echo unknown`
1933uname -v = `(uname -v) 2>/dev/null || echo unknown`
1934
1935/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1936/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1937
1938/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1939/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1940/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001941/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Lev Walkinf15320b2004-06-03 03:38:44 +00001942/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1943/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1944/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1945
1946_ASUNAME
1947
1948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949for as_dir in $PATH
1950do
1951 IFS=$as_save_IFS
1952 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08001953 $as_echo "PATH: $as_dir"
1954 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00001955IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00001956
1957} >&5
1958
1959cat >&5 <<_ACEOF
1960
1961
1962## ----------- ##
1963## Core tests. ##
1964## ----------- ##
1965
1966_ACEOF
1967
1968
1969# Keep a trace of the command line.
1970# Strip out --no-create and --no-recursion so they do not pile up.
1971# Strip out --silent because we don't want to record it for future runs.
1972# Also quote any args containing shell meta-characters.
1973# Make two passes to allow for proper duplicate-argument suppression.
1974ac_configure_args=
1975ac_configure_args0=
1976ac_configure_args1=
Lev Walkinf15320b2004-06-03 03:38:44 +00001977ac_must_keep_next=false
1978for ac_pass in 1 2
1979do
1980 for ac_arg
1981 do
1982 case $ac_arg in
1983 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1985 | -silent | --silent | --silen | --sile | --sil)
1986 continue ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001987 *\'*)
Lev Walkinb3751942012-09-02 19:36:47 -07001988 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001989 esac
1990 case $ac_pass in
Lev Walkinaef10c32014-01-14 01:47:25 -08001991 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001992 2)
Lev Walkinaef10c32014-01-14 01:47:25 -08001993 as_fn_append ac_configure_args1 " '$ac_arg'"
Lev Walkinf15320b2004-06-03 03:38:44 +00001994 if test $ac_must_keep_next = true; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001995 ac_must_keep_next=false # Got value, back to normal.
Lev Walkinf15320b2004-06-03 03:38:44 +00001996 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00001997 case $ac_arg in
1998 *=* | --config-cache | -C | -disable-* | --disable-* \
1999 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2000 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2001 | -with-* | --with-* | -without-* | --without-* | --x)
2002 case "$ac_configure_args0 " in
2003 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2004 esac
2005 ;;
2006 -* ) ac_must_keep_next=true ;;
2007 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002008 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002009 as_fn_append ac_configure_args " '$ac_arg'"
Lev Walkinf15320b2004-06-03 03:38:44 +00002010 ;;
2011 esac
2012 done
2013done
Lev Walkinaef10c32014-01-14 01:47:25 -08002014{ ac_configure_args0=; unset ac_configure_args0;}
2015{ ac_configure_args1=; unset ac_configure_args1;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002016
2017# When interrupted or exit'd, cleanup temporary files, and complete
2018# config.log. We remove comments because anyway the quotes in there
2019# would cause problems or look ugly.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002020# WARNING: Use '\'' to represent an apostrophe within the trap.
2021# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Lev Walkinf15320b2004-06-03 03:38:44 +00002022trap 'exit_status=$?
2023 # Save into config.log some information that might help in debugging.
2024 {
2025 echo
2026
Lev Walkinaef10c32014-01-14 01:47:25 -08002027 $as_echo "## ---------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00002028## Cache variables. ##
Lev Walkinaef10c32014-01-14 01:47:25 -08002029## ---------------- ##"
Lev Walkinf15320b2004-06-03 03:38:44 +00002030 echo
2031 # The following way of writing the cache mishandles newlines in values,
Lev Walkin27fd0b62007-08-27 23:57:45 +00002032(
2033 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2034 eval ac_val=\$$ac_var
2035 case $ac_val in #(
2036 *${as_nl}*)
2037 case $ac_var in #(
Lev Walkinaef10c32014-01-14 01:47:25 -08002038 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002039$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002040 esac
2041 case $ac_var in #(
2042 _ | IFS | as_nl) ;; #(
Lev Walkinb3751942012-09-02 19:36:47 -07002043 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Lev Walkinaef10c32014-01-14 01:47:25 -08002044 *) { eval $ac_var=; unset $ac_var;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002045 esac ;;
2046 esac
2047 done
Lev Walkinf15320b2004-06-03 03:38:44 +00002048 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +00002049 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2050 *${as_nl}ac_space=\ *)
Lev Walkinf15320b2004-06-03 03:38:44 +00002051 sed -n \
Lev Walkin27fd0b62007-08-27 23:57:45 +00002052 "s/'\''/'\''\\\\'\'''\''/g;
2053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2054 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +00002055 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00002056 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +00002057 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002058 esac |
2059 sort
2060)
Lev Walkinf15320b2004-06-03 03:38:44 +00002061 echo
2062
Lev Walkinaef10c32014-01-14 01:47:25 -08002063 $as_echo "## ----------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00002064## Output variables. ##
Lev Walkinaef10c32014-01-14 01:47:25 -08002065## ----------------- ##"
Lev Walkinf15320b2004-06-03 03:38:44 +00002066 echo
2067 for ac_var in $ac_subst_vars
2068 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002069 eval ac_val=\$$ac_var
2070 case $ac_val in
Lev Walkinb3751942012-09-02 19:36:47 -07002071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002072 esac
Lev Walkinb3751942012-09-02 19:36:47 -07002073 $as_echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00002074 done | sort
2075 echo
2076
2077 if test -n "$ac_subst_files"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002078 $as_echo "## ------------------- ##
Lev Walkin27fd0b62007-08-27 23:57:45 +00002079## File substitutions. ##
Lev Walkinaef10c32014-01-14 01:47:25 -08002080## ------------------- ##"
Lev Walkinf15320b2004-06-03 03:38:44 +00002081 echo
2082 for ac_var in $ac_subst_files
2083 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002084 eval ac_val=\$$ac_var
2085 case $ac_val in
Lev Walkinb3751942012-09-02 19:36:47 -07002086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002087 esac
Lev Walkinb3751942012-09-02 19:36:47 -07002088 $as_echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00002089 done | sort
2090 echo
2091 fi
2092
2093 if test -s confdefs.h; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002094 $as_echo "## ----------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00002095## confdefs.h. ##
Lev Walkinaef10c32014-01-14 01:47:25 -08002096## ----------- ##"
Lev Walkinf15320b2004-06-03 03:38:44 +00002097 echo
Lev Walkin27fd0b62007-08-27 23:57:45 +00002098 cat confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00002099 echo
2100 fi
2101 test "$ac_signal" != 0 &&
Lev Walkinb3751942012-09-02 19:36:47 -07002102 $as_echo "$as_me: caught signal $ac_signal"
2103 $as_echo "$as_me: exit $exit_status"
Lev Walkinf15320b2004-06-03 03:38:44 +00002104 } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00002105 rm -f core *.core core.conftest.* &&
2106 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Lev Walkinf15320b2004-06-03 03:38:44 +00002107 exit $exit_status
Lev Walkin27fd0b62007-08-27 23:57:45 +00002108' 0
Lev Walkinf15320b2004-06-03 03:38:44 +00002109for ac_signal in 1 2 13 15; do
Lev Walkinaef10c32014-01-14 01:47:25 -08002110 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Lev Walkinf15320b2004-06-03 03:38:44 +00002111done
2112ac_signal=0
2113
2114# confdefs.h avoids OS command line length limits that DEFS can exceed.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002115rm -f -r conftest* confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00002116
Lev Walkinaef10c32014-01-14 01:47:25 -08002117$as_echo "/* confdefs.h */" > confdefs.h
2118
Lev Walkinf15320b2004-06-03 03:38:44 +00002119# Predefined preprocessor variables.
2120
2121cat >>confdefs.h <<_ACEOF
2122#define PACKAGE_NAME "$PACKAGE_NAME"
2123_ACEOF
2124
Lev Walkinf15320b2004-06-03 03:38:44 +00002125cat >>confdefs.h <<_ACEOF
2126#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2127_ACEOF
2128
Lev Walkinf15320b2004-06-03 03:38:44 +00002129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_VERSION "$PACKAGE_VERSION"
2131_ACEOF
2132
Lev Walkinf15320b2004-06-03 03:38:44 +00002133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_STRING "$PACKAGE_STRING"
2135_ACEOF
2136
Lev Walkinf15320b2004-06-03 03:38:44 +00002137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2139_ACEOF
2140
Lev Walkinaef10c32014-01-14 01:47:25 -08002141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_URL "$PACKAGE_URL"
2143_ACEOF
2144
Lev Walkinf15320b2004-06-03 03:38:44 +00002145
2146# Let the site file select an alternate cache file if it wants to.
Lev Walkinb3751942012-09-02 19:36:47 -07002147# Prefer an explicitly selected file to automatically selected ones.
2148ac_site_file1=NONE
2149ac_site_file2=NONE
Lev Walkin27fd0b62007-08-27 23:57:45 +00002150if test -n "$CONFIG_SITE"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002151 # We do not want a PATH search for config.site.
2152 case $CONFIG_SITE in #((
2153 -*) ac_site_file1=./$CONFIG_SITE;;
2154 */*) ac_site_file1=$CONFIG_SITE;;
2155 *) ac_site_file1=./$CONFIG_SITE;;
2156 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00002157elif test "x$prefix" != xNONE; then
Lev Walkinb3751942012-09-02 19:36:47 -07002158 ac_site_file1=$prefix/share/config.site
2159 ac_site_file2=$prefix/etc/config.site
Lev Walkin27fd0b62007-08-27 23:57:45 +00002160else
Lev Walkinb3751942012-09-02 19:36:47 -07002161 ac_site_file1=$ac_default_prefix/share/config.site
2162 ac_site_file2=$ac_default_prefix/etc/config.site
Lev Walkinf15320b2004-06-03 03:38:44 +00002163fi
Lev Walkinb3751942012-09-02 19:36:47 -07002164for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Lev Walkin27fd0b62007-08-27 23:57:45 +00002165do
Lev Walkinb3751942012-09-02 19:36:47 -07002166 test "x$ac_site_file" = xNONE && continue
Lev Walkinaef10c32014-01-14 01:47:25 -08002167 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002169$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002170 sed 's/^/| /' "$ac_site_file" >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08002171 . "$ac_site_file" \
2172 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2174as_fn_error $? "failed to load site script $ac_site_file
2175See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002176 fi
2177done
2178
2179if test -r "$cache_file"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002180 # Some versions of bash will fail to source /dev/null (special files
2181 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2182 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002184$as_echo "$as_me: loading cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002185 case $cache_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00002186 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2187 *) . "./$cache_file";;
Lev Walkinf15320b2004-06-03 03:38:44 +00002188 esac
2189 fi
2190else
Lev Walkinaef10c32014-01-14 01:47:25 -08002191 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002192$as_echo "$as_me: creating cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002193 >$cache_file
2194fi
2195
2196# Check that the precious variables saved in the cache have kept the same
2197# value.
2198ac_cache_corrupted=false
Lev Walkin27fd0b62007-08-27 23:57:45 +00002199for ac_var in $ac_precious_vars; do
Lev Walkinf15320b2004-06-03 03:38:44 +00002200 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2201 eval ac_new_set=\$ac_env_${ac_var}_set
Lev Walkin27fd0b62007-08-27 23:57:45 +00002202 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2203 eval ac_new_val=\$ac_env_${ac_var}_value
Lev Walkinf15320b2004-06-03 03:38:44 +00002204 case $ac_old_set,$ac_new_set in
2205 set,)
Lev Walkinaef10c32014-01-14 01:47:25 -08002206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002207$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002208 ac_cache_corrupted=: ;;
2209 ,set)
Lev Walkinaef10c32014-01-14 01:47:25 -08002210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002211$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002212 ac_cache_corrupted=: ;;
2213 ,);;
2214 *)
2215 if test "x$ac_old_val" != "x$ac_new_val"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002216 # differences in whitespace do not lead to failure.
2217 ac_old_val_w=`echo x $ac_old_val`
2218 ac_new_val_w=`echo x $ac_new_val`
2219 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002221$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2222 ac_cache_corrupted=:
2223 else
Lev Walkinaef10c32014-01-14 01:47:25 -08002224 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002225$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2226 eval $ac_var=\$ac_old_val
2227 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002228 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002229$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08002230 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002231$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002232 fi;;
2233 esac
2234 # Pass precious variables to config.status.
2235 if test "$ac_new_set" = set; then
2236 case $ac_new_val in
Lev Walkinb3751942012-09-02 19:36:47 -07002237 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002238 *) ac_arg=$ac_var=$ac_new_val ;;
2239 esac
2240 case " $ac_configure_args " in
2241 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Lev Walkinaef10c32014-01-14 01:47:25 -08002242 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002243 esac
2244 fi
2245done
2246if $ac_cache_corrupted; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08002249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002250$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08002251 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +00002252fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002253## -------------------- ##
2254## Main body of script. ##
2255## -------------------- ##
Lev Walkine7c4b962010-11-09 03:10:36 -08002256
Lev Walkinf15320b2004-06-03 03:38:44 +00002257ac_ext=c
2258ac_cpp='$CPP $CPPFLAGS'
2259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261ac_compiler_gnu=$ac_cv_c_compiler_gnu
2262
2263
Lev Walkinb3751942012-09-02 19:36:47 -07002264am__api_version='1.11'
Lev Walkine7c4b962010-11-09 03:10:36 -08002265
Lev Walkinf15320b2004-06-03 03:38:44 +00002266ac_aux_dir=
Lev Walkin27fd0b62007-08-27 23:57:45 +00002267for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2268 if test -f "$ac_dir/install-sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002269 ac_aux_dir=$ac_dir
2270 ac_install_sh="$ac_aux_dir/install-sh -c"
2271 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00002272 elif test -f "$ac_dir/install.sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002273 ac_aux_dir=$ac_dir
2274 ac_install_sh="$ac_aux_dir/install.sh -c"
2275 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00002276 elif test -f "$ac_dir/shtool"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/shtool install -c"
2279 break
2280 fi
2281done
2282if test -z "$ac_aux_dir"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002283 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +00002284fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002285
2286# These three variables are undocumented and unsupported,
2287# and are intended to be withdrawn in a future Autoconf release.
2288# They can cause serious problems if a builder's source tree is in a directory
2289# whose full name contains unusual characters.
2290ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2291ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2292ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2293
Lev Walkinf15320b2004-06-03 03:38:44 +00002294
Lev Walkinf15320b2004-06-03 03:38:44 +00002295# Find a good install program. We prefer a C program (faster),
2296# so one script is as good as another. But avoid the broken or
2297# incompatible versions:
2298# SysV /etc/install, /usr/sbin/install
2299# SunOS /usr/etc/install
2300# IRIX /sbin/install
2301# AIX /bin/install
2302# AmigaOS /C/install, which installs bootblocks on floppy discs
2303# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2304# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2305# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002306# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +00002307# ./install, which can be erroneously created by make from ./install.sh.
Lev Walkinb3751942012-09-02 19:36:47 -07002308# Reject install programs that cannot install multiple files.
Lev Walkinaef10c32014-01-14 01:47:25 -08002309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002310$as_echo_n "checking for a BSD-compatible install... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002311if test -z "$INSTALL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002312if ${ac_cv_path_install+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002313 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002314else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316for as_dir in $PATH
2317do
2318 IFS=$as_save_IFS
2319 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002320 # Account for people who put trailing slashes in PATH elements.
2321case $as_dir/ in #((
2322 ./ | .// | /[cC]/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +00002323 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkinaef10c32014-01-14 01:47:25 -08002324 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Lev Walkinf15320b2004-06-03 03:38:44 +00002325 /usr/ucb/* ) ;;
2326 *)
2327 # OSF1 and SCO ODT 3.0 have their own names for install.
2328 # Don't use installbsd from OSF since it installs stuff as root
2329 # by default.
2330 for ac_prog in ginstall scoinst install; do
2331 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkinaef10c32014-01-14 01:47:25 -08002332 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002333 if test $ac_prog = install &&
2334 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2335 # AIX install. It has an incompatible calling convention.
2336 :
2337 elif test $ac_prog = install &&
2338 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2339 # program-specific install script used by HP pwplus--don't use.
2340 :
2341 else
Lev Walkinb3751942012-09-02 19:36:47 -07002342 rm -rf conftest.one conftest.two conftest.dir
2343 echo one > conftest.one
2344 echo two > conftest.two
2345 mkdir conftest.dir
2346 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2347 test -s conftest.one && test -s conftest.two &&
2348 test -s conftest.dir/conftest.one &&
2349 test -s conftest.dir/conftest.two
2350 then
2351 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2352 break 3
2353 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002354 fi
2355 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002356 done
2357 done
2358 ;;
2359esac
Lev Walkinb3751942012-09-02 19:36:47 -07002360
Lev Walkinaef10c32014-01-14 01:47:25 -08002361 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002362IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002363
Lev Walkinb3751942012-09-02 19:36:47 -07002364rm -rf conftest.one conftest.two conftest.dir
Lev Walkinf15320b2004-06-03 03:38:44 +00002365
2366fi
2367 if test "${ac_cv_path_install+set}" = set; then
2368 INSTALL=$ac_cv_path_install
2369 else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002370 # As a last resort, use the slow shell script. Don't cache a
2371 # value for INSTALL within a source directory, because that will
Lev Walkinf15320b2004-06-03 03:38:44 +00002372 # break other packages using the cache if that directory is
Lev Walkin27fd0b62007-08-27 23:57:45 +00002373 # removed, or if the value is a relative name.
Lev Walkinf15320b2004-06-03 03:38:44 +00002374 INSTALL=$ac_install_sh
2375 fi
2376fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002378$as_echo "$INSTALL" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002379
2380# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2381# It thinks the first close brace ends the variable substitution.
2382test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2383
2384test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2385
2386test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2387
Lev Walkinaef10c32014-01-14 01:47:25 -08002388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002389$as_echo_n "checking whether build environment is sane... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002390# Just in case
2391sleep 1
2392echo timestamp > conftest.file
Lev Walkinb3751942012-09-02 19:36:47 -07002393# Reject unsafe characters in $srcdir or the absolute working directory
2394# name. Accept space and tab only in the latter.
2395am_lf='
2396'
2397case `pwd` in
2398 *[\\\"\#\$\&\'\`$am_lf]*)
Lev Walkinaef10c32014-01-14 01:47:25 -08002399 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Lev Walkinb3751942012-09-02 19:36:47 -07002400esac
2401case $srcdir in
2402 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Lev Walkinaef10c32014-01-14 01:47:25 -08002403 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
Lev Walkinb3751942012-09-02 19:36:47 -07002404esac
2405
Lev Walkinf15320b2004-06-03 03:38:44 +00002406# Do `set' in a subshell so we don't clobber the current shell's
2407# arguments. Must try -L first in case configure is actually a
2408# symlink; some systems play weird games with the mod time of symlinks
2409# (eg FreeBSD returns the mod time of the symlink's containing
2410# directory).
2411if (
Lev Walkinb3751942012-09-02 19:36:47 -07002412 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Lev Walkinf15320b2004-06-03 03:38:44 +00002413 if test "$*" = "X"; then
2414 # -L didn't work.
Lev Walkinb3751942012-09-02 19:36:47 -07002415 set X `ls -t "$srcdir/configure" conftest.file`
Lev Walkinf15320b2004-06-03 03:38:44 +00002416 fi
2417 rm -f conftest.file
2418 if test "$*" != "X $srcdir/configure conftest.file" \
2419 && test "$*" != "X conftest.file $srcdir/configure"; then
2420
2421 # If neither matched, then we have a broken ls. This can happen
2422 # if, for instance, CONFIG_SHELL is bash and it inherits a
2423 # broken ls alias from the environment. This has actually
2424 # happened. Such a system could not be considered "sane".
Lev Walkinaef10c32014-01-14 01:47:25 -08002425 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2426alias in your environment" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +00002427 fi
2428
2429 test "$2" = conftest.file
2430 )
2431then
2432 # Ok.
2433 :
2434else
Lev Walkinaef10c32014-01-14 01:47:25 -08002435 as_fn_error $? "newly created file is older than distributed files!
2436Check your system clock" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +00002437fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002439$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002440test "$program_prefix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002441 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Lev Walkinf15320b2004-06-03 03:38:44 +00002442# Use a double $ so make ignores it.
2443test "$program_suffix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002444 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Lev Walkinb3751942012-09-02 19:36:47 -07002445# Double any \ or $.
Lev Walkinf15320b2004-06-03 03:38:44 +00002446# By default was `s,x,x', remove it if useless.
Lev Walkinb3751942012-09-02 19:36:47 -07002447ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2448program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Lev Walkinf15320b2004-06-03 03:38:44 +00002449
Lev Walkinf15320b2004-06-03 03:38:44 +00002450# expand $ac_aux_dir to an absolute path
Lev Walkin8e8b5482004-06-17 23:42:48 +00002451am_aux_dir=`cd $ac_aux_dir && pwd`
Lev Walkinf15320b2004-06-03 03:38:44 +00002452
Lev Walkinb3751942012-09-02 19:36:47 -07002453if test x"${MISSING+set}" != xset; then
2454 case $am_aux_dir in
2455 *\ * | *\ *)
2456 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2457 *)
2458 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2459 esac
2460fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002461# Use eval to expand $SHELL
2462if eval "$MISSING --run true"; then
2463 am_missing_run="$MISSING --run "
2464else
2465 am_missing_run=
Lev Walkinaef10c32014-01-14 01:47:25 -08002466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002467$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00002468fi
2469
Lev Walkinb3751942012-09-02 19:36:47 -07002470if test x"${install_sh}" != xset; then
2471 case $am_aux_dir in
2472 *\ * | *\ *)
2473 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2474 *)
2475 install_sh="\${SHELL} $am_aux_dir/install-sh"
2476 esac
2477fi
2478
2479# Installed binaries are usually stripped using `strip' when the user
2480# run `make install-strip'. However `strip' might not be the right
2481# tool to use in cross-compilation environments, therefore Automake
2482# will honor the `STRIP' environment variable to overrule this program.
2483if test "$cross_compiling" != no; then
2484 if test -n "$ac_tool_prefix"; then
2485 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2486set dummy ${ac_tool_prefix}strip; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08002487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002488$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002489if ${ac_cv_prog_STRIP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002490 $as_echo_n "(cached) " >&6
2491else
2492 if test -n "$STRIP"; then
2493 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2494else
2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496for as_dir in $PATH
2497do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002502 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Lev Walkinaef10c32014-01-14 01:47:25 -08002503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002504 break 2
2505 fi
2506done
Lev Walkinaef10c32014-01-14 01:47:25 -08002507 done
Lev Walkinb3751942012-09-02 19:36:47 -07002508IFS=$as_save_IFS
2509
2510fi
2511fi
2512STRIP=$ac_cv_prog_STRIP
2513if test -n "$STRIP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002515$as_echo "$STRIP" >&6; }
2516else
Lev Walkinaef10c32014-01-14 01:47:25 -08002517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002518$as_echo "no" >&6; }
2519fi
2520
2521
2522fi
2523if test -z "$ac_cv_prog_STRIP"; then
2524 ac_ct_STRIP=$STRIP
2525 # Extract the first word of "strip", so it can be a program name with args.
2526set dummy strip; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08002527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002528$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002529if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002530 $as_echo_n "(cached) " >&6
2531else
2532 if test -n "$ac_ct_STRIP"; then
2533 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2534else
2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002542 ac_cv_prog_ac_ct_STRIP="strip"
Lev Walkinaef10c32014-01-14 01:47:25 -08002543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002544 break 2
2545 fi
2546done
Lev Walkinaef10c32014-01-14 01:47:25 -08002547 done
Lev Walkinb3751942012-09-02 19:36:47 -07002548IFS=$as_save_IFS
2549
2550fi
2551fi
2552ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2553if test -n "$ac_ct_STRIP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002555$as_echo "$ac_ct_STRIP" >&6; }
2556else
Lev Walkinaef10c32014-01-14 01:47:25 -08002557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002558$as_echo "no" >&6; }
2559fi
2560
2561 if test "x$ac_ct_STRIP" = x; then
2562 STRIP=":"
2563 else
2564 case $cross_compiling:$ac_tool_warned in
2565yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08002566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2568ac_tool_warned=yes ;;
2569esac
2570 STRIP=$ac_ct_STRIP
2571 fi
2572else
2573 STRIP="$ac_cv_prog_STRIP"
2574fi
2575
2576fi
2577INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2578
Lev Walkinaef10c32014-01-14 01:47:25 -08002579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002580$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -08002581if test -z "$MKDIR_P"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002582 if ${ac_cv_path_mkdir+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002583 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00002584else
Lev Walkin4c776e52010-11-08 02:07:31 -08002585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2587do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002590 for ac_prog in mkdir gmkdir; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002591 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkinaef10c32014-01-14 01:47:25 -08002592 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Lev Walkin4c776e52010-11-08 02:07:31 -08002593 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2594 'mkdir (GNU coreutils) '* | \
2595 'mkdir (coreutils) '* | \
2596 'mkdir (fileutils) '4.1*)
2597 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2598 break 3;;
2599 esac
2600 done
2601 done
Lev Walkinaef10c32014-01-14 01:47:25 -08002602 done
Lev Walkin4c776e52010-11-08 02:07:31 -08002603IFS=$as_save_IFS
2604
2605fi
2606
Lev Walkinaef10c32014-01-14 01:47:25 -08002607 test -d ./--version && rmdir ./--version
Lev Walkin4c776e52010-11-08 02:07:31 -08002608 if test "${ac_cv_path_mkdir+set}" = set; then
2609 MKDIR_P="$ac_cv_path_mkdir -p"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002610 else
Lev Walkin4c776e52010-11-08 02:07:31 -08002611 # As a last resort, use the slow shell script. Don't cache a
2612 # value for MKDIR_P within a source directory, because that will
2613 # break other packages using the cache if that directory is
2614 # removed, or if the value is a relative name.
Lev Walkin4c776e52010-11-08 02:07:31 -08002615 MKDIR_P="$ac_install_sh -d"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002616 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002617fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002619$as_echo "$MKDIR_P" >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -08002620
2621mkdir_p="$MKDIR_P"
2622case $mkdir_p in
2623 [\\/$]* | ?:[\\/]*) ;;
2624 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2625esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002626
2627for ac_prog in gawk mawk nawk awk
2628do
2629 # Extract the first word of "$ac_prog", so it can be a program name with args.
2630set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08002631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002632$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002633if ${ac_cv_prog_AWK+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002634 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002635else
2636 if test -n "$AWK"; then
2637 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2638else
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002646 ac_cv_prog_AWK="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08002647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002648 break 2
2649 fi
2650done
Lev Walkinaef10c32014-01-14 01:47:25 -08002651 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002652IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002653
2654fi
2655fi
2656AWK=$ac_cv_prog_AWK
2657if test -n "$AWK"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002659$as_echo "$AWK" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002660else
Lev Walkinaef10c32014-01-14 01:47:25 -08002661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002662$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002663fi
2664
Lev Walkin27fd0b62007-08-27 23:57:45 +00002665
Lev Walkinf15320b2004-06-03 03:38:44 +00002666 test -n "$AWK" && break
2667done
2668
Lev Walkinaef10c32014-01-14 01:47:25 -08002669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002670$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2671set x ${MAKE-make}
2672ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Lev Walkinaef10c32014-01-14 01:47:25 -08002673if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002674 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002675else
2676 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00002677SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +00002678all:
Lev Walkin27fd0b62007-08-27 23:57:45 +00002679 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +00002680_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08002681# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002682case `${MAKE-make} -f conftest.make 2>/dev/null` in
2683 *@@@%%%=?*=@@@%%%*)
2684 eval ac_cv_prog_make_${ac_make}_set=yes;;
2685 *)
2686 eval ac_cv_prog_make_${ac_make}_set=no;;
2687esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002688rm -f conftest.make
2689fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002690if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002692$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002693 SET_MAKE=
2694else
Lev Walkinaef10c32014-01-14 01:47:25 -08002695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002696$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002697 SET_MAKE="MAKE=${MAKE-make}"
2698fi
2699
Lev Walkin8e8b5482004-06-17 23:42:48 +00002700rm -rf .tst 2>/dev/null
2701mkdir .tst 2>/dev/null
2702if test -d .tst; then
2703 am__leading_dot=.
Lev Walkinf15320b2004-06-03 03:38:44 +00002704else
Lev Walkin8e8b5482004-06-17 23:42:48 +00002705 am__leading_dot=_
Lev Walkinf15320b2004-06-03 03:38:44 +00002706fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002707rmdir .tst 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +00002708
Lev Walkin4c776e52010-11-08 02:07:31 -08002709if test "`cd $srcdir && pwd`" != "`pwd`"; then
2710 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2711 # is not polluted with repeated "-I."
2712 am__isrc=' -I$(srcdir)'
2713 # test to see if srcdir already configured
2714 if test -f $srcdir/config.status; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002715 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Lev Walkin4c776e52010-11-08 02:07:31 -08002716 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002717fi
2718
Lev Walkin8e8b5482004-06-17 23:42:48 +00002719# test whether we have cygpath
2720if test -z "$CYGPATH_W"; then
2721 if (cygpath --version) >/dev/null 2>/dev/null; then
2722 CYGPATH_W='cygpath -w'
2723 else
2724 CYGPATH_W=echo
2725 fi
2726fi
2727
2728
Lev Walkinf15320b2004-06-03 03:38:44 +00002729# Define the identity of the package.
Lev Walkine7c4b962010-11-09 03:10:36 -08002730 PACKAGE='asn1c'
Lev Walkind8ca7ce2013-03-16 07:07:26 -07002731 VERSION='0.9.24'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002732
Lev Walkinf15320b2004-06-03 03:38:44 +00002733
2734cat >>confdefs.h <<_ACEOF
2735#define PACKAGE "$PACKAGE"
2736_ACEOF
2737
2738
2739cat >>confdefs.h <<_ACEOF
2740#define VERSION "$VERSION"
2741_ACEOF
2742
Lev Walkinf15320b2004-06-03 03:38:44 +00002743# Some tools Automake needs.
2744
Lev Walkin8e8b5482004-06-17 23:42:48 +00002745ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002746
2747
2748AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2749
2750
Lev Walkin8e8b5482004-06-17 23:42:48 +00002751AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002752
2753
2754AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2755
2756
2757MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2758
Lev Walkinf15320b2004-06-03 03:38:44 +00002759# We need awk for the "check" target. The system "awk" is bad on
2760# some platforms.
Lev Walkinc46b7cb2006-08-18 02:27:55 +00002761# Always define AMTAR for backward compatibility.
2762
2763AMTAR=${AMTAR-"${am_missing_run}tar"}
2764
2765am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2766
2767
Lev Walkinf15320b2004-06-03 03:38:44 +00002768
2769
2770
Lev Walkine7c4b962010-11-09 03:10:36 -08002771ac_config_headers="$ac_config_headers config.h"
Lev Walkinf15320b2004-06-03 03:38:44 +00002772
2773
2774
Lev Walkin4da95cf2010-10-16 02:46:32 -07002775case `pwd` in
2776 *\ * | *\ *)
Lev Walkinaef10c32014-01-14 01:47:25 -08002777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002778$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07002779esac
2780
2781
2782
Lev Walkinaef10c32014-01-14 01:47:25 -08002783macro_version='2.4'
2784macro_revision='1.3293'
Lev Walkin4da95cf2010-10-16 02:46:32 -07002785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798ltmain="$ac_aux_dir/ltmain.sh"
2799
Lev Walkine7c4b962010-11-09 03:10:36 -08002800# Make sure we can run config.sub.
2801$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Lev Walkinaef10c32014-01-14 01:47:25 -08002802 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Lev Walkine7c4b962010-11-09 03:10:36 -08002803
Lev Walkinaef10c32014-01-14 01:47:25 -08002804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002805$as_echo_n "checking build system type... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002806if ${ac_cv_build+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002807 $as_echo_n "(cached) " >&6
Lev Walkine7c4b962010-11-09 03:10:36 -08002808else
2809 ac_build_alias=$build_alias
2810test "x$ac_build_alias" = x &&
2811 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2812test "x$ac_build_alias" = x &&
Lev Walkinaef10c32014-01-14 01:47:25 -08002813 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Lev Walkine7c4b962010-11-09 03:10:36 -08002814ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Lev Walkinaef10c32014-01-14 01:47:25 -08002815 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Lev Walkine7c4b962010-11-09 03:10:36 -08002816
2817fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002819$as_echo "$ac_cv_build" >&6; }
Lev Walkine7c4b962010-11-09 03:10:36 -08002820case $ac_cv_build in
2821*-*-*) ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08002822*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Lev Walkine7c4b962010-11-09 03:10:36 -08002823esac
2824build=$ac_cv_build
2825ac_save_IFS=$IFS; IFS='-'
2826set x $ac_cv_build
2827shift
2828build_cpu=$1
2829build_vendor=$2
2830shift; shift
2831# Remember, the first character of IFS is used to create $*,
2832# except with old shells:
2833build_os=$*
2834IFS=$ac_save_IFS
2835case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2836
2837
Lev Walkinaef10c32014-01-14 01:47:25 -08002838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002839$as_echo_n "checking host system type... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002840if ${ac_cv_host+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002841 $as_echo_n "(cached) " >&6
Lev Walkine7c4b962010-11-09 03:10:36 -08002842else
2843 if test "x$host_alias" = x; then
2844 ac_cv_host=$ac_cv_build
2845else
2846 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Lev Walkinaef10c32014-01-14 01:47:25 -08002847 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Lev Walkine7c4b962010-11-09 03:10:36 -08002848fi
2849
2850fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002852$as_echo "$ac_cv_host" >&6; }
Lev Walkine7c4b962010-11-09 03:10:36 -08002853case $ac_cv_host in
2854*-*-*) ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08002855*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Lev Walkine7c4b962010-11-09 03:10:36 -08002856esac
2857host=$ac_cv_host
2858ac_save_IFS=$IFS; IFS='-'
2859set x $ac_cv_host
2860shift
2861host_cpu=$1
2862host_vendor=$2
2863shift; shift
2864# Remember, the first character of IFS is used to create $*,
2865# except with old shells:
2866host_os=$*
2867IFS=$ac_save_IFS
2868case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2869
2870
Lev Walkinaef10c32014-01-14 01:47:25 -08002871# Backslashify metacharacters that are still active within
2872# double-quoted strings.
2873sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2874
2875# Same as above, but do not quote variable references.
2876double_quote_subst='s/\(["`\\]\)/\\\1/g'
2877
2878# Sed substitution to delay expansion of an escaped shell variable in a
2879# double_quote_subst'ed string.
2880delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2881
2882# Sed substitution to delay expansion of an escaped single quote.
2883delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2884
2885# Sed substitution to avoid accidental globbing in evaled expressions
2886no_glob_subst='s/\*/\\\*/g'
2887
2888ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2889ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2890ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2891
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2893$as_echo_n "checking how to print strings... " >&6; }
2894# Test print first, because it will be a builtin if present.
2895if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2896 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2897 ECHO='print -r --'
2898elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2899 ECHO='printf %s\n'
2900else
2901 # Use this function as a fallback that always works.
2902 func_fallback_echo ()
2903 {
2904 eval 'cat <<_LTECHO_EOF
2905$1
2906_LTECHO_EOF'
2907 }
2908 ECHO='func_fallback_echo'
2909fi
2910
2911# func_echo_all arg...
2912# Invoke $ECHO with all args, space-separated.
2913func_echo_all ()
2914{
2915 $ECHO ""
2916}
2917
2918case "$ECHO" in
2919 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2920$as_echo "printf" >&6; } ;;
2921 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2922$as_echo "print -r" >&6; } ;;
2923 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2924$as_echo "cat" >&6; } ;;
2925esac
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
Lev Walkin8e8b5482004-06-17 23:42:48 +00002940DEPDIR="${am__leading_dot}deps"
Lev Walkinf15320b2004-06-03 03:38:44 +00002941
Lev Walkin27fd0b62007-08-27 23:57:45 +00002942ac_config_commands="$ac_config_commands depfiles"
Lev Walkinf15320b2004-06-03 03:38:44 +00002943
Lev Walkinf15320b2004-06-03 03:38:44 +00002944
2945am_make=${MAKE-make}
2946cat > confinc << 'END'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002947am__doit:
Lev Walkinb3751942012-09-02 19:36:47 -07002948 @echo this is the am__doit target
Lev Walkin8e8b5482004-06-17 23:42:48 +00002949.PHONY: am__doit
Lev Walkinf15320b2004-06-03 03:38:44 +00002950END
2951# If we don't find an include directive, just comment out the code.
Lev Walkinaef10c32014-01-14 01:47:25 -08002952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002953$as_echo_n "checking for style of include used by $am_make... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002954am__include="#"
Lev Walkinf15320b2004-06-03 03:38:44 +00002955am__quote=
2956_am_result=none
2957# First try GNU make style include.
2958echo "include confinc" > confmf
Lev Walkinb3751942012-09-02 19:36:47 -07002959# Ignore all kinds of additional output from `make'.
2960case `$am_make -s -f confmf 2> /dev/null` in #(
2961*the\ am__doit\ target*)
2962 am__include=include
2963 am__quote=
2964 _am_result=GNU
2965 ;;
2966esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002967# Now try BSD make style include.
2968if test "$am__include" = "#"; then
2969 echo '.include "confinc"' > confmf
Lev Walkinb3751942012-09-02 19:36:47 -07002970 case `$am_make -s -f confmf 2> /dev/null` in #(
2971 *the\ am__doit\ target*)
2972 am__include=.include
2973 am__quote="\""
2974 _am_result=BSD
2975 ;;
2976 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002977fi
2978
2979
Lev Walkinaef10c32014-01-14 01:47:25 -08002980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002981$as_echo "$_am_result" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002982rm -f confinc confmf
2983
Lev Walkin27fd0b62007-08-27 23:57:45 +00002984# Check whether --enable-dependency-tracking was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08002985if test "${enable_dependency_tracking+set}" = set; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00002986 enableval=$enable_dependency_tracking;
2987fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002988
Lev Walkin8e8b5482004-06-17 23:42:48 +00002989if test "x$enable_dependency_tracking" != xno; then
2990 am_depcomp="$ac_aux_dir/depcomp"
2991 AMDEPBACKSLASH='\'
2992fi
Lev Walkin4c776e52010-11-08 02:07:31 -08002993 if test "x$enable_dependency_tracking" != xno; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002994 AMDEP_TRUE=
2995 AMDEP_FALSE='#'
2996else
2997 AMDEP_TRUE='#'
2998 AMDEP_FALSE=
2999fi
3000
3001
Lev Walkinf15320b2004-06-03 03:38:44 +00003002ac_ext=c
3003ac_cpp='$CPP $CPPFLAGS'
3004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3006ac_compiler_gnu=$ac_cv_c_compiler_gnu
3007if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3009set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003011$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003012if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003013 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003014else
3015 if test -n "$CC"; then
3016 ac_cv_prog_CC="$CC" # Let the user override the test.
3017else
3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019for as_dir in $PATH
3020do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003025 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Lev Walkinaef10c32014-01-14 01:47:25 -08003026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003027 break 2
3028 fi
3029done
Lev Walkinaef10c32014-01-14 01:47:25 -08003030 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003031IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003032
3033fi
3034fi
3035CC=$ac_cv_prog_CC
3036if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003038$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003039else
Lev Walkinaef10c32014-01-14 01:47:25 -08003040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003041$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003042fi
3043
Lev Walkin27fd0b62007-08-27 23:57:45 +00003044
Lev Walkinf15320b2004-06-03 03:38:44 +00003045fi
3046if test -z "$ac_cv_prog_CC"; then
3047 ac_ct_CC=$CC
3048 # Extract the first word of "gcc", so it can be a program name with args.
3049set dummy gcc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003051$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003052if ${ac_cv_prog_ac_ct_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003053 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003054else
3055 if test -n "$ac_ct_CC"; then
3056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3057else
3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH
3060do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003065 ac_cv_prog_ac_ct_CC="gcc"
Lev Walkinaef10c32014-01-14 01:47:25 -08003066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003067 break 2
3068 fi
3069done
Lev Walkinaef10c32014-01-14 01:47:25 -08003070 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003071IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003072
3073fi
3074fi
3075ac_ct_CC=$ac_cv_prog_ac_ct_CC
3076if test -n "$ac_ct_CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003078$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003079else
Lev Walkinaef10c32014-01-14 01:47:25 -08003080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003081$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003082fi
3083
Lev Walkin27fd0b62007-08-27 23:57:45 +00003084 if test "x$ac_ct_CC" = x; then
3085 CC=""
3086 else
3087 case $cross_compiling:$ac_tool_warned in
3088yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08003089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +00003091ac_tool_warned=yes ;;
3092esac
3093 CC=$ac_ct_CC
3094 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003095else
3096 CC="$ac_cv_prog_CC"
3097fi
3098
3099if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003100 if test -n "$ac_tool_prefix"; then
3101 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Lev Walkinf15320b2004-06-03 03:38:44 +00003102set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003104$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003105if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003106 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003107else
3108 if test -n "$CC"; then
3109 ac_cv_prog_CC="$CC" # Let the user override the test.
3110else
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003118 ac_cv_prog_CC="${ac_tool_prefix}cc"
Lev Walkinaef10c32014-01-14 01:47:25 -08003119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003120 break 2
3121 fi
3122done
Lev Walkinaef10c32014-01-14 01:47:25 -08003123 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003124IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003125
3126fi
3127fi
3128CC=$ac_cv_prog_CC
3129if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003131$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003132else
Lev Walkinaef10c32014-01-14 01:47:25 -08003133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003134$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003135fi
3136
Lev Walkin27fd0b62007-08-27 23:57:45 +00003137
Lev Walkinf15320b2004-06-03 03:38:44 +00003138 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003139fi
3140if test -z "$CC"; then
3141 # Extract the first word of "cc", so it can be a program name with args.
3142set dummy cc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003144$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003145if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003146 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003147else
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3150else
3151 ac_prog_rejected=no
3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153for as_dir in $PATH
3154do
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003159 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3160 ac_prog_rejected=yes
3161 continue
3162 fi
3163 ac_cv_prog_CC="cc"
Lev Walkinaef10c32014-01-14 01:47:25 -08003164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003165 break 2
3166 fi
3167done
Lev Walkinaef10c32014-01-14 01:47:25 -08003168 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003169IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003170
3171if test $ac_prog_rejected = yes; then
3172 # We found a bogon in the path, so make sure we never use it.
3173 set dummy $ac_cv_prog_CC
3174 shift
3175 if test $# != 0; then
3176 # We chose a different compiler from the bogus one.
3177 # However, it has the same basename, so the bogon will be chosen
3178 # first if we set CC to just the basename; use the full file name.
3179 shift
3180 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3181 fi
3182fi
3183fi
3184fi
3185CC=$ac_cv_prog_CC
3186if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003188$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003189else
Lev Walkinaef10c32014-01-14 01:47:25 -08003190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003191$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003192fi
3193
Lev Walkin27fd0b62007-08-27 23:57:45 +00003194
Lev Walkinf15320b2004-06-03 03:38:44 +00003195fi
3196if test -z "$CC"; then
3197 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003198 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00003199 do
3200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3201set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003203$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003204if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003205 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003206else
3207 if test -n "$CC"; then
3208 ac_cv_prog_CC="$CC" # Let the user override the test.
3209else
3210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211for as_dir in $PATH
3212do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003217 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08003218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003219 break 2
3220 fi
3221done
Lev Walkinaef10c32014-01-14 01:47:25 -08003222 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003223IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003224
3225fi
3226fi
3227CC=$ac_cv_prog_CC
3228if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003230$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003231else
Lev Walkinaef10c32014-01-14 01:47:25 -08003232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003233$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003234fi
3235
Lev Walkin27fd0b62007-08-27 23:57:45 +00003236
Lev Walkinf15320b2004-06-03 03:38:44 +00003237 test -n "$CC" && break
3238 done
3239fi
3240if test -z "$CC"; then
3241 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +00003242 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00003243do
3244 # Extract the first word of "$ac_prog", so it can be a program name with args.
3245set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003247$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003248if ${ac_cv_prog_ac_ct_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003249 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003250else
3251 if test -n "$ac_ct_CC"; then
3252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3253else
3254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255for as_dir in $PATH
3256do
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003261 ac_cv_prog_ac_ct_CC="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08003262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003263 break 2
3264 fi
3265done
Lev Walkinaef10c32014-01-14 01:47:25 -08003266 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003267IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003268
3269fi
3270fi
3271ac_ct_CC=$ac_cv_prog_ac_ct_CC
3272if test -n "$ac_ct_CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003274$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003275else
Lev Walkinaef10c32014-01-14 01:47:25 -08003276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003277$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003278fi
3279
Lev Walkin27fd0b62007-08-27 23:57:45 +00003280
Lev Walkinf15320b2004-06-03 03:38:44 +00003281 test -n "$ac_ct_CC" && break
3282done
3283
Lev Walkin27fd0b62007-08-27 23:57:45 +00003284 if test "x$ac_ct_CC" = x; then
3285 CC=""
3286 else
3287 case $cross_compiling:$ac_tool_warned in
3288yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08003289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +00003291ac_tool_warned=yes ;;
3292esac
3293 CC=$ac_ct_CC
3294 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003295fi
3296
3297fi
3298
3299
Lev Walkinaef10c32014-01-14 01:47:25 -08003300test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08003302as_fn_error $? "no acceptable C compiler found in \$PATH
3303See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003304
3305# Provide some information about the compiler.
Lev Walkinaef10c32014-01-14 01:47:25 -08003306$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003307set X $ac_compile
3308ac_compiler=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003309for ac_option in --version -v -V -qversion; do
3310 { { ac_try="$ac_compiler $ac_option >&5"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003311case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316$as_echo "$ac_try_echo"; } >&5
3317 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Lev Walkinf15320b2004-06-03 03:38:44 +00003318 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08003319 if test -s conftest.err; then
3320 sed '10a\
3321... rest of stderr output deleted ...
3322 10q' conftest.err >conftest.er1
3323 cat conftest.er1 >&5
3324 fi
3325 rm -f conftest.er1 conftest.err
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }
3328done
Lev Walkinf15320b2004-06-03 03:38:44 +00003329
Lev Walkinaef10c32014-01-14 01:47:25 -08003330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003331/* end confdefs.h. */
3332
3333int
3334main ()
3335{
3336
3337 ;
3338 return 0;
3339}
3340_ACEOF
3341ac_clean_files_save=$ac_clean_files
Lev Walkinb3751942012-09-02 19:36:47 -07003342ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Lev Walkinf15320b2004-06-03 03:38:44 +00003343# Try to create an executable without -o first, disregard a.out.
3344# It will help us diagnose broken compilers, and finding out an intuition
3345# of exeext.
Lev Walkinaef10c32014-01-14 01:47:25 -08003346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3347$as_echo_n "checking whether the C compiler works... " >&6; }
Lev Walkinb3751942012-09-02 19:36:47 -07003348ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3349
3350# The possible output files:
3351ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3352
Lev Walkin27fd0b62007-08-27 23:57:45 +00003353ac_rmfiles=
3354for ac_file in $ac_files
3355do
3356 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00003358 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3359 esac
3360done
3361rm -f $ac_rmfiles
3362
Lev Walkinaef10c32014-01-14 01:47:25 -08003363if { { ac_try="$ac_link_default"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003364case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369$as_echo "$ac_try_echo"; } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003370 (eval "$ac_link_default") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003371 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08003372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373 test $ac_status = 0; }; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003374 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3375# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3376# in a Makefile. We should not override ac_cv_exeext if it was cached,
3377# so that the user can short-circuit this test for compilers unknown to
3378# Autoconf.
Lev Walkin4c776e52010-11-08 02:07:31 -08003379for ac_file in $ac_files ''
Lev Walkinf15320b2004-06-03 03:38:44 +00003380do
3381 test -f "$ac_file" || continue
3382 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003384 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003385 [ab].out )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003386 # We found the default executable, but exeext='' is most
3387 # certainly right.
3388 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003389 *.* )
Lev Walkinaef10c32014-01-14 01:47:25 -08003390 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Lev Walkin27fd0b62007-08-27 23:57:45 +00003391 then :; else
3392 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3393 fi
3394 # We set ac_cv_exeext here because the later test for it is not
3395 # safe: cross compilers may not add the suffix if given an `-o'
3396 # argument, so we may need to know it at that point already.
3397 # Even if this section looks crufty: it has the advantage of
3398 # actually working.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003399 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003400 * )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003401 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003402 esac
3403done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003404test "$ac_cv_exeext" = no && ac_cv_exeext=
3405
Lev Walkinf15320b2004-06-03 03:38:44 +00003406else
Lev Walkin4c776e52010-11-08 02:07:31 -08003407 ac_file=''
3408fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003409if test -z "$ac_file"; then :
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411$as_echo "no" >&6; }
3412$as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003413sed 's/^/| /' conftest.$ac_ext >&5
3414
Lev Walkinaef10c32014-01-14 01:47:25 -08003415{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08003417as_fn_error 77 "C compiler cannot create executables
3418See \`config.log' for more details" "$LINENO" 5; }
3419else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003421$as_echo "yes" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003422fi
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3424$as_echo_n "checking for C compiler default output file name... " >&6; }
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3426$as_echo "$ac_file" >&6; }
3427ac_exeext=$ac_cv_exeext
Lev Walkinf15320b2004-06-03 03:38:44 +00003428
Lev Walkinb3751942012-09-02 19:36:47 -07003429rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Lev Walkinf15320b2004-06-03 03:38:44 +00003430ac_clean_files=$ac_clean_files_save
Lev Walkinaef10c32014-01-14 01:47:25 -08003431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003432$as_echo_n "checking for suffix of executables... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003433if { { ac_try="$ac_link"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003434case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439$as_echo "$ac_try_echo"; } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003440 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003441 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08003442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00003444 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3445# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3446# work properly (i.e., refer to `conftest.exe'), while it won't with
3447# `rm'.
3448for ac_file in conftest.exe conftest conftest.*; do
3449 test -f "$ac_file" || continue
3450 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003452 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Lev Walkin8e8b5482004-06-17 23:42:48 +00003453 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003454 * ) break;;
3455 esac
3456done
3457else
Lev Walkinaef10c32014-01-14 01:47:25 -08003458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08003460as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3461See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003462fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003463rm -f conftest conftest$ac_cv_exeext
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003465$as_echo "$ac_cv_exeext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003466
3467rm -f conftest.$ac_ext
3468EXEEXT=$ac_cv_exeext
3469ac_exeext=$EXEEXT
Lev Walkinaef10c32014-01-14 01:47:25 -08003470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471/* end confdefs.h. */
3472#include <stdio.h>
3473int
3474main ()
3475{
3476FILE *f = fopen ("conftest.out", "w");
3477 return ferror (f) || fclose (f) != 0;
3478
3479 ;
3480 return 0;
3481}
3482_ACEOF
3483ac_clean_files="$ac_clean_files conftest.out"
3484# Check that the compiler produces executables we can run. If not, either
3485# the compiler is broken, or we cross compile.
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3487$as_echo_n "checking whether we are cross compiling... " >&6; }
3488if test "$cross_compiling" != yes; then
3489 { { ac_try="$ac_link"
3490case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493esac
3494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495$as_echo "$ac_try_echo"; } >&5
3496 (eval "$ac_link") 2>&5
3497 ac_status=$?
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }
3500 if { ac_try='./conftest$ac_cv_exeext'
3501 { { case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504esac
3505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506$as_echo "$ac_try_echo"; } >&5
3507 (eval "$ac_try") 2>&5
3508 ac_status=$?
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }; }; then
3511 cross_compiling=no
3512 else
3513 if test "$cross_compiling" = maybe; then
3514 cross_compiling=yes
3515 else
3516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518as_fn_error $? "cannot run C compiled programs.
3519If you meant to cross compile, use \`--host'.
3520See \`config.log' for more details" "$LINENO" 5; }
3521 fi
3522 fi
3523fi
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3525$as_echo "$cross_compiling" >&6; }
3526
3527rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3528ac_clean_files=$ac_clean_files_save
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003530$as_echo_n "checking for suffix of object files... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003531if ${ac_cv_objext+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003532 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003533else
Lev Walkinaef10c32014-01-14 01:47:25 -08003534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003535/* end confdefs.h. */
3536
3537int
3538main ()
3539{
3540
3541 ;
3542 return 0;
3543}
3544_ACEOF
3545rm -f conftest.o conftest.obj
Lev Walkinaef10c32014-01-14 01:47:25 -08003546if { { ac_try="$ac_compile"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003547case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552$as_echo "$ac_try_echo"; } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003553 (eval "$ac_compile") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003554 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08003555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556 test $ac_status = 0; }; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003557 for ac_file in conftest.o conftest.obj conftest.*; do
3558 test -f "$ac_file" || continue;
Lev Walkinf15320b2004-06-03 03:38:44 +00003559 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003561 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3562 break;;
3563 esac
3564done
3565else
Lev Walkinb3751942012-09-02 19:36:47 -07003566 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003567sed 's/^/| /' conftest.$ac_ext >&5
3568
Lev Walkinaef10c32014-01-14 01:47:25 -08003569{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08003571as_fn_error $? "cannot compute suffix of object files: cannot compile
3572See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003573fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003574rm -f conftest.$ac_cv_objext conftest.$ac_ext
3575fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003577$as_echo "$ac_cv_objext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003578OBJEXT=$ac_cv_objext
3579ac_objext=$OBJEXT
Lev Walkinaef10c32014-01-14 01:47:25 -08003580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003581$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003582if ${ac_cv_c_compiler_gnu+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003583 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003584else
Lev Walkinaef10c32014-01-14 01:47:25 -08003585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003586/* end confdefs.h. */
3587
3588int
3589main ()
3590{
3591#ifndef __GNUC__
3592 choke me
3593#endif
3594
3595 ;
3596 return 0;
3597}
3598_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08003599if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00003600 ac_compiler_gnu=yes
3601else
Lev Walkinaef10c32014-01-14 01:47:25 -08003602 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003603fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003605ac_cv_c_compiler_gnu=$ac_compiler_gnu
3606
3607fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003609$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3610if test $ac_compiler_gnu = yes; then
3611 GCC=yes
3612else
3613 GCC=
3614fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003615ac_test_CFLAGS=${CFLAGS+set}
3616ac_save_CFLAGS=$CFLAGS
Lev Walkinaef10c32014-01-14 01:47:25 -08003617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003618$as_echo_n "checking whether $CC accepts -g... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003619if ${ac_cv_prog_cc_g+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003620 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003621else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003622 ac_save_c_werror_flag=$ac_c_werror_flag
3623 ac_c_werror_flag=yes
3624 ac_cv_prog_cc_g=no
3625 CFLAGS="-g"
Lev Walkinaef10c32014-01-14 01:47:25 -08003626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003627/* end confdefs.h. */
3628
3629int
3630main ()
3631{
3632
3633 ;
3634 return 0;
3635}
3636_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08003637if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00003638 ac_cv_prog_cc_g=yes
3639else
Lev Walkinaef10c32014-01-14 01:47:25 -08003640 CFLAGS=""
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003642/* end confdefs.h. */
3643
3644int
3645main ()
3646{
3647
3648 ;
3649 return 0;
3650}
3651_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08003652if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003653
Lev Walkinaef10c32014-01-14 01:47:25 -08003654else
3655 ac_c_werror_flag=$ac_save_c_werror_flag
Lev Walkin27fd0b62007-08-27 23:57:45 +00003656 CFLAGS="-g"
Lev Walkinaef10c32014-01-14 01:47:25 -08003657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003658/* end confdefs.h. */
3659
3660int
3661main ()
3662{
3663
3664 ;
3665 return 0;
3666}
3667_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08003668if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003669 ac_cv_prog_cc_g=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00003670fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003672fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 ac_c_werror_flag=$ac_save_c_werror_flag
3677fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003679$as_echo "$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003680if test "$ac_test_CFLAGS" = set; then
3681 CFLAGS=$ac_save_CFLAGS
3682elif test $ac_cv_prog_cc_g = yes; then
3683 if test "$GCC" = yes; then
3684 CFLAGS="-g -O2"
3685 else
3686 CFLAGS="-g"
3687 fi
3688else
3689 if test "$GCC" = yes; then
3690 CFLAGS="-O2"
3691 else
3692 CFLAGS=
3693 fi
3694fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003696$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003697if ${ac_cv_prog_cc_c89+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003698 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003699else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003700 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003701ac_save_CC=$CC
Lev Walkinaef10c32014-01-14 01:47:25 -08003702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003703/* end confdefs.h. */
3704#include <stdarg.h>
3705#include <stdio.h>
Lev Walkinaef10c32014-01-14 01:47:25 -08003706struct stat;
Lev Walkinf15320b2004-06-03 03:38:44 +00003707/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3708struct buf { int x; };
3709FILE * (*rcsopen) (struct buf *, struct stat *, int);
3710static char *e (p, i)
3711 char **p;
3712 int i;
3713{
3714 return p[i];
3715}
3716static char *f (char * (*g) (char **, int), char **p, ...)
3717{
3718 char *s;
3719 va_list v;
3720 va_start (v,p);
3721 s = g (p, va_arg (v,int));
3722 va_end (v);
3723 return s;
3724}
Lev Walkin8e8b5482004-06-17 23:42:48 +00003725
3726/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3727 function prototypes and stuff, but not '\xHH' hex character constants.
3728 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +00003729 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +00003730 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3731 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +00003732 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00003733int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3734
Lev Walkin27fd0b62007-08-27 23:57:45 +00003735/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3736 inside strings and character constants. */
3737#define FOO(x) 'x'
3738int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3739
Lev Walkinf15320b2004-06-03 03:38:44 +00003740int test (int i, double x);
3741struct s1 {int (*f) (int a);};
3742struct s2 {int (*f) (double a);};
3743int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3744int argc;
3745char **argv;
3746int
3747main ()
3748{
3749return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3750 ;
3751 return 0;
3752}
3753_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00003754for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3755 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +00003756do
3757 CC="$ac_save_CC $ac_arg"
Lev Walkinaef10c32014-01-14 01:47:25 -08003758 if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003759 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +00003760fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003761rm -f core conftest.err conftest.$ac_objext
3762 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +00003763done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003764rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003765CC=$ac_save_CC
3766
3767fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003768# AC_CACHE_VAL
3769case "x$ac_cv_prog_cc_c89" in
3770 x)
Lev Walkinaef10c32014-01-14 01:47:25 -08003771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003772$as_echo "none needed" >&6; } ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00003773 xno)
Lev Walkinaef10c32014-01-14 01:47:25 -08003774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003775$as_echo "unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003776 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00003777 CC="$CC $ac_cv_prog_cc_c89"
Lev Walkinaef10c32014-01-14 01:47:25 -08003778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003779$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003780esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003781if test "x$ac_cv_prog_cc_c89" != xno; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00003782
Lev Walkinaef10c32014-01-14 01:47:25 -08003783fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003784
Lev Walkinf15320b2004-06-03 03:38:44 +00003785ac_ext=c
3786ac_cpp='$CPP $CPPFLAGS'
3787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790
3791depcc="$CC" am_compiler_list=
3792
Lev Walkinaef10c32014-01-14 01:47:25 -08003793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003794$as_echo_n "checking dependency style of $depcc... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003795if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003796 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003797else
3798 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3799 # We make a subdir and do the tests there. Otherwise we can end up
3800 # making bogus files that we don't know about and never remove. For
3801 # instance it was reported that on HP-UX the gcc test will end up
3802 # making a dummy file named `D' -- because `-MD' means `put the output
3803 # in D'.
3804 mkdir conftest.dir
3805 # Copy depcomp to subdir because otherwise we won't find it if we're
3806 # using a relative directory.
3807 cp "$am_depcomp" conftest.dir
3808 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +00003809 # We will build objects and dependencies in a subdirectory because
3810 # it helps to detect inapplicable dependency modes. For instance
3811 # both Tru64's cc and ICC support -MD to output dependencies as a
3812 # side effect of compilation, but ICC will put the dependencies in
3813 # the current directory while Tru64 will put them in the object
3814 # directory.
3815 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +00003816
3817 am_cv_CC_dependencies_compiler_type=none
3818 if test "$am_compiler_list" = ""; then
3819 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3820 fi
Lev Walkinb3751942012-09-02 19:36:47 -07003821 am__universal=false
3822 case " $depcc " in #(
3823 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3824 esac
3825
Lev Walkinf15320b2004-06-03 03:38:44 +00003826 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003827 # Setup a source with many dependencies, because some compilers
3828 # like to wrap large dependency lists on column 80 (with \), and
3829 # we should not choose a depcomp mode which is confused by this.
3830 #
Lev Walkinf15320b2004-06-03 03:38:44 +00003831 # We need to recreate these files for each test, as the compiler may
3832 # overwrite some of them when testing with obscure command lines.
3833 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003834 : > sub/conftest.c
3835 for i in 1 2 3 4 5 6; do
3836 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3837 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3838 # Solaris 8's {/usr,}/bin/sh.
3839 touch sub/conftst$i.h
3840 done
3841 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +00003842
Lev Walkinb3751942012-09-02 19:36:47 -07003843 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3844 # mode. It turns out that the SunPro C++ compiler does not properly
3845 # handle `-M -o', and we need to detect this. Also, some Intel
3846 # versions had trouble with output in subdirs
3847 am__obj=sub/conftest.${OBJEXT-o}
3848 am__minus_obj="-o $am__obj"
Lev Walkinf15320b2004-06-03 03:38:44 +00003849 case $depmode in
Lev Walkinb3751942012-09-02 19:36:47 -07003850 gcc)
3851 # This depmode causes a compiler race in universal mode.
3852 test "$am__universal" = false || continue
3853 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003854 nosideeffect)
3855 # after this tag, mechanisms are not by side-effect, so they'll
3856 # only be used when explicitly requested
3857 if test "x$enable_dependency_tracking" = xyes; then
3858 continue
3859 else
3860 break
3861 fi
3862 ;;
Lev Walkinb3751942012-09-02 19:36:47 -07003863 msvisualcpp | msvcmsys)
3864 # This compiler won't grok `-c -o', but also, the minuso test has
3865 # not run yet. These depmodes are late enough in the game, and
3866 # so weak that their functioning should not be impacted.
3867 am__obj=conftest.${OBJEXT-o}
3868 am__minus_obj=
3869 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003870 none) break ;;
3871 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003872 if depmode=$depmode \
Lev Walkinb3751942012-09-02 19:36:47 -07003873 source=sub/conftest.c object=$am__obj \
Lev Walkin8e8b5482004-06-17 23:42:48 +00003874 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Lev Walkinb3751942012-09-02 19:36:47 -07003875 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Lev Walkin8e8b5482004-06-17 23:42:48 +00003876 >/dev/null 2>conftest.err &&
Lev Walkin4c776e52010-11-08 02:07:31 -08003877 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00003878 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinb3751942012-09-02 19:36:47 -07003879 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +00003880 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003881 # icc doesn't choke on unknown options, it will just issue warnings
3882 # or remarks (even with -Werror). So we grep stderr for any message
3883 # that says an option was ignored or not supported.
3884 # When given -MP, icc 7.0 and 7.1 complain thusly:
3885 # icc: Command line warning: ignoring option '-M'; no argument required
3886 # The diagnosis changed in icc 8.0:
3887 # icc: Command line remark: option '-MP' not supported
3888 if (grep 'ignoring option' conftest.err ||
3889 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3890 am_cv_CC_dependencies_compiler_type=$depmode
3891 break
3892 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003893 fi
3894 done
3895
3896 cd ..
3897 rm -rf conftest.dir
3898else
3899 am_cv_CC_dependencies_compiler_type=none
3900fi
3901
3902fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003904$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00003905CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3906
Lev Walkin4c776e52010-11-08 02:07:31 -08003907 if
Lev Walkin8e8b5482004-06-17 23:42:48 +00003908 test "x$enable_dependency_tracking" != xno \
3909 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3910 am__fastdepCC_TRUE=
3911 am__fastdepCC_FALSE='#'
3912else
3913 am__fastdepCC_TRUE='#'
3914 am__fastdepCC_FALSE=
3915fi
3916
3917
Lev Walkinaef10c32014-01-14 01:47:25 -08003918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003919$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003920if ${ac_cv_path_SED+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003921 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00003922else
Lev Walkin4da95cf2010-10-16 02:46:32 -07003923 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3924 for ac_i in 1 2 3 4 5 6 7; do
3925 ac_script="$ac_script$as_nl$ac_script"
3926 done
Lev Walkinb3751942012-09-02 19:36:47 -07003927 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Lev Walkinaef10c32014-01-14 01:47:25 -08003928 { ac_script=; unset ac_script;}
Lev Walkinb3751942012-09-02 19:36:47 -07003929 if test -z "$SED"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07003930 ac_path_SED_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07003931 # Loop through the user's path and test for each of PROGNAME-LIST
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin8e8b5482004-06-17 23:42:48 +00003933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003937 for ac_prog in sed gsed; do
Lev Walkinb3751942012-09-02 19:36:47 -07003938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -08003940 as_fn_executable_p "$ac_path_SED" || continue
Lev Walkinb3751942012-09-02 19:36:47 -07003941# Check for GNU ac_path_SED and select it if it is found.
Lev Walkin4da95cf2010-10-16 02:46:32 -07003942 # Check for GNU $ac_path_SED
3943case `"$ac_path_SED" --version 2>&1` in
3944*GNU*)
3945 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3946*)
3947 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07003948 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin4da95cf2010-10-16 02:46:32 -07003949 while :
3950 do
3951 cat "conftest.in" "conftest.in" >"conftest.tmp"
3952 mv "conftest.tmp" "conftest.in"
3953 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07003954 $as_echo '' >> "conftest.nl"
Lev Walkin4da95cf2010-10-16 02:46:32 -07003955 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Lev Walkinaef10c32014-01-14 01:47:25 -08003957 as_fn_arith $ac_count + 1 && ac_count=$as_val
Lev Walkin4da95cf2010-10-16 02:46:32 -07003958 if test $ac_count -gt ${ac_path_SED_max-0}; then
3959 # Best one so far, save it but keep looking for a better one
3960 ac_cv_path_SED="$ac_path_SED"
3961 ac_path_SED_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00003962 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07003963 # 10*(2^10) chars as input seems more than enough
3964 test $ac_count -gt 10 && break
3965 done
3966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3967esac
3968
Lev Walkinb3751942012-09-02 19:36:47 -07003969 $ac_path_SED_found && break 3
3970 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00003971 done
Lev Walkinaef10c32014-01-14 01:47:25 -08003972 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07003973IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07003974 if test -z "$ac_cv_path_SED"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003975 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -07003976 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07003977else
3978 ac_cv_path_SED=$SED
3979fi
3980
3981fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003983$as_echo "$ac_cv_path_SED" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07003984 SED="$ac_cv_path_SED"
3985 rm -f conftest.sed
3986
3987test -z "$SED" && SED=sed
3988Xsed="$SED -e 1s/^X//"
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
Lev Walkin8e8b5482004-06-17 23:42:48 +00003999
Lev Walkinaef10c32014-01-14 01:47:25 -08004000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004001$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004002if ${ac_cv_path_GREP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004003 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00004004else
Lev Walkinb3751942012-09-02 19:36:47 -07004005 if test -z "$GREP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004006 ac_path_GREP_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07004007 # Loop through the user's path and test for each of PROGNAME-LIST
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin27fd0b62007-08-27 23:57:45 +00004009for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4010do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004013 for ac_prog in grep ggrep; do
Lev Walkinb3751942012-09-02 19:36:47 -07004014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -08004016 as_fn_executable_p "$ac_path_GREP" || continue
Lev Walkinb3751942012-09-02 19:36:47 -07004017# Check for GNU ac_path_GREP and select it if it is found.
Lev Walkin27fd0b62007-08-27 23:57:45 +00004018 # Check for GNU $ac_path_GREP
4019case `"$ac_path_GREP" --version 2>&1` in
4020*GNU*)
4021 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4022*)
4023 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07004024 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004025 while :
4026 do
4027 cat "conftest.in" "conftest.in" >"conftest.tmp"
4028 mv "conftest.tmp" "conftest.in"
4029 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07004030 $as_echo 'GREP' >> "conftest.nl"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004031 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Lev Walkinaef10c32014-01-14 01:47:25 -08004033 as_fn_arith $ac_count + 1 && ac_count=$as_val
Lev Walkin27fd0b62007-08-27 23:57:45 +00004034 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4035 # Best one so far, save it but keep looking for a better one
4036 ac_cv_path_GREP="$ac_path_GREP"
4037 ac_path_GREP_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00004038 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004039 # 10*(2^10) chars as input seems more than enough
4040 test $ac_count -gt 10 && break
4041 done
4042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4043esac
4044
Lev Walkinb3751942012-09-02 19:36:47 -07004045 $ac_path_GREP_found && break 3
4046 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00004047 done
Lev Walkinaef10c32014-01-14 01:47:25 -08004048 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00004049IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07004050 if test -z "$ac_cv_path_GREP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004051 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -07004052 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004053else
4054 ac_cv_path_GREP=$GREP
4055fi
4056
Lev Walkin27fd0b62007-08-27 23:57:45 +00004057fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004059$as_echo "$ac_cv_path_GREP" >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00004060 GREP="$ac_cv_path_GREP"
4061
4062
Lev Walkinaef10c32014-01-14 01:47:25 -08004063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004064$as_echo_n "checking for egrep... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004065if ${ac_cv_path_EGREP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004066 $as_echo_n "(cached) " >&6
Lev Walkin27fd0b62007-08-27 23:57:45 +00004067else
4068 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4069 then ac_cv_path_EGREP="$GREP -E"
4070 else
Lev Walkinb3751942012-09-02 19:36:47 -07004071 if test -z "$EGREP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004072 ac_path_EGREP_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07004073 # Loop through the user's path and test for each of PROGNAME-LIST
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin27fd0b62007-08-27 23:57:45 +00004075for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4076do
4077 IFS=$as_save_IFS
4078 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004079 for ac_prog in egrep; do
Lev Walkinb3751942012-09-02 19:36:47 -07004080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -08004082 as_fn_executable_p "$ac_path_EGREP" || continue
Lev Walkinb3751942012-09-02 19:36:47 -07004083# Check for GNU ac_path_EGREP and select it if it is found.
Lev Walkin27fd0b62007-08-27 23:57:45 +00004084 # Check for GNU $ac_path_EGREP
4085case `"$ac_path_EGREP" --version 2>&1` in
4086*GNU*)
4087 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4088*)
4089 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07004090 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004091 while :
4092 do
4093 cat "conftest.in" "conftest.in" >"conftest.tmp"
4094 mv "conftest.tmp" "conftest.in"
4095 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07004096 $as_echo 'EGREP' >> "conftest.nl"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004097 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Lev Walkinaef10c32014-01-14 01:47:25 -08004099 as_fn_arith $ac_count + 1 && ac_count=$as_val
Lev Walkin27fd0b62007-08-27 23:57:45 +00004100 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4101 # Best one so far, save it but keep looking for a better one
4102 ac_cv_path_EGREP="$ac_path_EGREP"
4103 ac_path_EGREP_max=$ac_count
4104 fi
4105 # 10*(2^10) chars as input seems more than enough
4106 test $ac_count -gt 10 && break
4107 done
4108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109esac
4110
Lev Walkinb3751942012-09-02 19:36:47 -07004111 $ac_path_EGREP_found && break 3
4112 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00004113 done
Lev Walkinaef10c32014-01-14 01:47:25 -08004114 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00004115IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07004116 if test -z "$ac_cv_path_EGREP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004117 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -07004118 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004119else
4120 ac_cv_path_EGREP=$EGREP
4121fi
4122
Lev Walkin27fd0b62007-08-27 23:57:45 +00004123 fi
4124fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004126$as_echo "$ac_cv_path_EGREP" >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00004127 EGREP="$ac_cv_path_EGREP"
Lev Walkinf15320b2004-06-03 03:38:44 +00004128
4129
Lev Walkinaef10c32014-01-14 01:47:25 -08004130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004131$as_echo_n "checking for fgrep... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004132if ${ac_cv_path_FGREP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004133 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004134else
4135 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4136 then ac_cv_path_FGREP="$GREP -F"
4137 else
Lev Walkinb3751942012-09-02 19:36:47 -07004138 if test -z "$FGREP"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004139 ac_path_FGREP_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07004140 # Loop through the user's path and test for each of PROGNAME-LIST
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin4da95cf2010-10-16 02:46:32 -07004142for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4143do
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004146 for ac_prog in fgrep; do
Lev Walkinb3751942012-09-02 19:36:47 -07004147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -08004149 as_fn_executable_p "$ac_path_FGREP" || continue
Lev Walkinb3751942012-09-02 19:36:47 -07004150# Check for GNU ac_path_FGREP and select it if it is found.
Lev Walkin4da95cf2010-10-16 02:46:32 -07004151 # Check for GNU $ac_path_FGREP
4152case `"$ac_path_FGREP" --version 2>&1` in
4153*GNU*)
4154 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4155*)
4156 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07004157 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004158 while :
4159 do
4160 cat "conftest.in" "conftest.in" >"conftest.tmp"
4161 mv "conftest.tmp" "conftest.in"
4162 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07004163 $as_echo 'FGREP' >> "conftest.nl"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004164 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Lev Walkinaef10c32014-01-14 01:47:25 -08004166 as_fn_arith $ac_count + 1 && ac_count=$as_val
Lev Walkin4da95cf2010-10-16 02:46:32 -07004167 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4168 # Best one so far, save it but keep looking for a better one
4169 ac_cv_path_FGREP="$ac_path_FGREP"
4170 ac_path_FGREP_max=$ac_count
4171 fi
4172 # 10*(2^10) chars as input seems more than enough
4173 test $ac_count -gt 10 && break
4174 done
4175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4176esac
4177
Lev Walkinb3751942012-09-02 19:36:47 -07004178 $ac_path_FGREP_found && break 3
4179 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004180 done
Lev Walkinaef10c32014-01-14 01:47:25 -08004181 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004182IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07004183 if test -z "$ac_cv_path_FGREP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004184 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -07004185 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07004186else
4187 ac_cv_path_FGREP=$FGREP
4188fi
4189
Lev Walkin4da95cf2010-10-16 02:46:32 -07004190 fi
4191fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004193$as_echo "$ac_cv_path_FGREP" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004194 FGREP="$ac_cv_path_FGREP"
4195
4196
4197test -z "$GREP" && GREP=grep
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
Lev Walkinf15320b2004-06-03 03:38:44 +00004216
Lev Walkin27fd0b62007-08-27 23:57:45 +00004217# Check whether --with-gnu-ld was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08004218if test "${with_gnu_ld+set}" = set; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00004219 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00004220else
4221 with_gnu_ld=no
Lev Walkin27fd0b62007-08-27 23:57:45 +00004222fi
4223
Lev Walkinf15320b2004-06-03 03:38:44 +00004224ac_prog=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00004225if test "$GCC" = yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004226 # Check if gcc -print-prog-name=ld gives a path.
Lev Walkinaef10c32014-01-14 01:47:25 -08004227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004228$as_echo_n "checking for ld used by $CC... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004229 case $host in
4230 *-*-mingw*)
4231 # gcc leaves a trailing carriage return which upsets mingw
4232 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4233 *)
4234 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4235 esac
4236 case $ac_prog in
Lev Walkinf15320b2004-06-03 03:38:44 +00004237 # Accept absolute paths.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004238 [\\/]* | ?:[\\/]*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004239 re_direlt='/[^/][^/]*/\.\./'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004240 # Canonicalize the pathname of ld
Lev Walkin4da95cf2010-10-16 02:46:32 -07004241 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4242 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4243 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Lev Walkinf15320b2004-06-03 03:38:44 +00004244 done
4245 test -z "$LD" && LD="$ac_prog"
4246 ;;
4247 "")
4248 # If it fails, then pretend we aren't using GCC.
4249 ac_prog=ld
4250 ;;
4251 *)
4252 # If it is relative, then search for the first ld in PATH.
4253 with_gnu_ld=unknown
4254 ;;
4255 esac
4256elif test "$with_gnu_ld" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004258$as_echo_n "checking for GNU ld... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004259else
Lev Walkinaef10c32014-01-14 01:47:25 -08004260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004261$as_echo_n "checking for non-GNU ld... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004262fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004263if ${lt_cv_path_LD+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004264 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00004265else
4266 if test -z "$LD"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004267 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +00004268 for ac_dir in $PATH; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00004269 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004270 test -z "$ac_dir" && ac_dir=.
4271 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004272 lt_cv_path_LD="$ac_dir/$ac_prog"
Lev Walkinf15320b2004-06-03 03:38:44 +00004273 # Check to see if the program is GNU ld. I'd rather use --version,
Lev Walkinfbf1d282007-12-03 14:58:39 +00004274 # but apparently some variants of GNU ld only accept -v.
Lev Walkinf15320b2004-06-03 03:38:44 +00004275 # Break only if it was the GNU/non-GNU ld that we prefer.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004276 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4277 *GNU* | *'with BFD'*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004278 test "$with_gnu_ld" != no && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004279 ;;
4280 *)
Lev Walkinf15320b2004-06-03 03:38:44 +00004281 test "$with_gnu_ld" != yes && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004282 ;;
4283 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004284 fi
4285 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00004286 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004287else
Lev Walkin8e8b5482004-06-17 23:42:48 +00004288 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Lev Walkinf15320b2004-06-03 03:38:44 +00004289fi
4290fi
4291
Lev Walkin8e8b5482004-06-17 23:42:48 +00004292LD="$lt_cv_path_LD"
Lev Walkinf15320b2004-06-03 03:38:44 +00004293if test -n "$LD"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004295$as_echo "$LD" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004296else
Lev Walkinaef10c32014-01-14 01:47:25 -08004297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004298$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004299fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004300test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004302$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004303if ${lt_cv_prog_gnu_ld+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004304 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00004305else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004306 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004307case `$LD -v 2>&1 </dev/null` in
4308*GNU* | *'with BFD'*)
4309 lt_cv_prog_gnu_ld=yes
4310 ;;
4311*)
4312 lt_cv_prog_gnu_ld=no
4313 ;;
4314esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004315fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004317$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004318with_gnu_ld=$lt_cv_prog_gnu_ld
Lev Walkinf15320b2004-06-03 03:38:44 +00004319
4320
Lev Walkin8e8b5482004-06-17 23:42:48 +00004321
Lev Walkin4da95cf2010-10-16 02:46:32 -07004322
4323
4324
4325
4326
4327
Lev Walkinaef10c32014-01-14 01:47:25 -08004328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004329$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004330if ${lt_cv_path_NM+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004331 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00004332else
4333 if test -n "$NM"; then
4334 # Let the user override the test.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004335 lt_cv_path_NM="$NM"
Lev Walkinf15320b2004-06-03 03:38:44 +00004336else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004337 lt_nm_to_check="${ac_tool_prefix}nm"
4338 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4339 lt_nm_to_check="$lt_nm_to_check nm"
4340 fi
4341 for lt_tmp_nm in $lt_nm_to_check; do
4342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4343 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4344 IFS="$lt_save_ifs"
4345 test -z "$ac_dir" && ac_dir=.
4346 tmp_nm="$ac_dir/$lt_tmp_nm"
4347 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4348 # Check to see if the nm accepts a BSD-compat flag.
4349 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4350 # nm: unknown option "B" ignored
4351 # Tru64's nm complains that /dev/null is an invalid object file
4352 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4353 */dev/null* | *'Invalid file or object type'*)
4354 lt_cv_path_NM="$tmp_nm -B"
Lev Walkin8e8b5482004-06-17 23:42:48 +00004355 break
4356 ;;
4357 *)
Lev Walkinfbf1d282007-12-03 14:58:39 +00004358 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4359 */dev/null*)
4360 lt_cv_path_NM="$tmp_nm -p"
4361 break
4362 ;;
4363 *)
4364 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4365 continue # so that we can try to find one that supports BSD flags
4366 ;;
4367 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00004368 ;;
4369 esac
Lev Walkinfbf1d282007-12-03 14:58:39 +00004370 fi
4371 done
4372 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004373 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004374 : ${lt_cv_path_NM=no}
Lev Walkinf15320b2004-06-03 03:38:44 +00004375fi
4376fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004378$as_echo "$lt_cv_path_NM" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004379if test "$lt_cv_path_NM" != "no"; then
4380 NM="$lt_cv_path_NM"
4381else
4382 # Didn't find any BSD compatible name lister, look for dumpbin.
Lev Walkinaef10c32014-01-14 01:47:25 -08004383 if test -n "$DUMPBIN"; then :
4384 # Let the user override the test.
4385 else
4386 if test -n "$ac_tool_prefix"; then
4387 for ac_prog in dumpbin "link -dump"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004388 do
4389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4390set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08004391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004392$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004393if ${ac_cv_prog_DUMPBIN+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004394 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004395else
4396 if test -n "$DUMPBIN"; then
4397 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4398else
4399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400for as_dir in $PATH
4401do
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004406 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08004407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07004408 break 2
4409 fi
4410done
Lev Walkinaef10c32014-01-14 01:47:25 -08004411 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004412IFS=$as_save_IFS
4413
4414fi
4415fi
4416DUMPBIN=$ac_cv_prog_DUMPBIN
4417if test -n "$DUMPBIN"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004419$as_echo "$DUMPBIN" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004420else
Lev Walkinaef10c32014-01-14 01:47:25 -08004421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004422$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004423fi
4424
4425
4426 test -n "$DUMPBIN" && break
4427 done
4428fi
4429if test -z "$DUMPBIN"; then
4430 ac_ct_DUMPBIN=$DUMPBIN
Lev Walkinaef10c32014-01-14 01:47:25 -08004431 for ac_prog in dumpbin "link -dump"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004432do
4433 # Extract the first word of "$ac_prog", so it can be a program name with args.
4434set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08004435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004436$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004437if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004438 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004439else
4440 if test -n "$ac_ct_DUMPBIN"; then
4441 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4442else
4443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444for as_dir in $PATH
4445do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004450 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08004451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07004452 break 2
4453 fi
4454done
Lev Walkinaef10c32014-01-14 01:47:25 -08004455 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004456IFS=$as_save_IFS
4457
4458fi
4459fi
4460ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4461if test -n "$ac_ct_DUMPBIN"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004463$as_echo "$ac_ct_DUMPBIN" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004464else
Lev Walkinaef10c32014-01-14 01:47:25 -08004465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004466$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004467fi
4468
4469
4470 test -n "$ac_ct_DUMPBIN" && break
4471done
4472
4473 if test "x$ac_ct_DUMPBIN" = x; then
4474 DUMPBIN=":"
4475 else
4476 case $cross_compiling:$ac_tool_warned in
4477yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08004478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07004480ac_tool_warned=yes ;;
4481esac
4482 DUMPBIN=$ac_ct_DUMPBIN
4483 fi
4484fi
4485
Lev Walkinaef10c32014-01-14 01:47:25 -08004486 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4487 *COFF*)
4488 DUMPBIN="$DUMPBIN -symbols"
4489 ;;
4490 *)
4491 DUMPBIN=:
4492 ;;
4493 esac
4494 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07004495
4496 if test "$DUMPBIN" != ":"; then
4497 NM="$DUMPBIN"
4498 fi
4499fi
4500test -z "$NM" && NM=nm
4501
4502
4503
4504
4505
4506
Lev Walkinaef10c32014-01-14 01:47:25 -08004507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004508$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004509if ${lt_cv_nm_interface+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004510 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004511else
4512 lt_cv_nm_interface="BSD nm"
4513 echo "int some_variable = 0;" > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08004514 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004515 (eval "$ac_compile" 2>conftest.err)
4516 cat conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08004517 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004518 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4519 cat conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08004520 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004521 cat conftest.out >&5
4522 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4523 lt_cv_nm_interface="MS dumpbin"
4524 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004525 rm -f conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07004526fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004528$as_echo "$lt_cv_nm_interface" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004529
Lev Walkinaef10c32014-01-14 01:47:25 -08004530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004531$as_echo_n "checking whether ln -s works... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004532LN_S=$as_ln_s
4533if test "$LN_S" = "ln -s"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004535$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004536else
Lev Walkinaef10c32014-01-14 01:47:25 -08004537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004538$as_echo "no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004539fi
4540
Lev Walkin4da95cf2010-10-16 02:46:32 -07004541# find the maximum length of command line arguments
Lev Walkinaef10c32014-01-14 01:47:25 -08004542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004543$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004544if ${lt_cv_sys_max_cmd_len+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004545 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004546else
4547 i=0
4548 teststring="ABCD"
4549
4550 case $build_os in
4551 msdosdjgpp*)
4552 # On DJGPP, this test can blow up pretty badly due to problems in libc
4553 # (any single argument exceeding 2000 bytes causes a buffer overrun
4554 # during glob expansion). Even if it were fixed, the result of this
4555 # check would be larger than it should be.
4556 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4557 ;;
4558
4559 gnu*)
4560 # Under GNU Hurd, this test is not required because there is
4561 # no limit to the length of command line arguments.
4562 # Libtool will interpret -1 as no limit whatsoever
4563 lt_cv_sys_max_cmd_len=-1;
4564 ;;
4565
Lev Walkinaef10c32014-01-14 01:47:25 -08004566 cygwin* | mingw* | cegcc*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004567 # On Win9x/ME, this test blows up -- it succeeds, but takes
4568 # about 5 minutes as the teststring grows exponentially.
4569 # Worse, since 9x/ME are not pre-emptively multitasking,
4570 # you end up with a "frozen" computer, even though with patience
4571 # the test eventually succeeds (with a max line length of 256k).
4572 # Instead, let's just punt: use the minimum linelength reported by
4573 # all of the supported platforms: 8192 (on NT/2K/XP).
4574 lt_cv_sys_max_cmd_len=8192;
4575 ;;
4576
Lev Walkinaef10c32014-01-14 01:47:25 -08004577 mint*)
4578 # On MiNT this can take a long time and run out of memory.
4579 lt_cv_sys_max_cmd_len=8192;
4580 ;;
4581
Lev Walkin4da95cf2010-10-16 02:46:32 -07004582 amigaos*)
4583 # On AmigaOS with pdksh, this test takes hours, literally.
4584 # So we just punt and use a minimum line length of 8192.
4585 lt_cv_sys_max_cmd_len=8192;
4586 ;;
4587
4588 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4589 # This has been around since 386BSD, at least. Likely further.
4590 if test -x /sbin/sysctl; then
4591 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4592 elif test -x /usr/sbin/sysctl; then
4593 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4594 else
4595 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4596 fi
4597 # And add a safety zone
4598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4600 ;;
4601
4602 interix*)
4603 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4604 lt_cv_sys_max_cmd_len=196608
4605 ;;
4606
4607 osf*)
4608 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4609 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4610 # nice to cause kernel panics so lets avoid the loop below.
4611 # First set a reasonable default.
4612 lt_cv_sys_max_cmd_len=16384
4613 #
4614 if test -x /sbin/sysconfig; then
4615 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4616 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4617 esac
4618 fi
4619 ;;
4620 sco3.2v5*)
4621 lt_cv_sys_max_cmd_len=102400
4622 ;;
4623 sysv5* | sco5v6* | sysv4.2uw2*)
4624 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4625 if test -n "$kargmax"; then
4626 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4627 else
4628 lt_cv_sys_max_cmd_len=32768
4629 fi
4630 ;;
4631 *)
4632 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4633 if test -n "$lt_cv_sys_max_cmd_len"; then
4634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4636 else
4637 # Make teststring a little bigger before we do anything with it.
4638 # a 1K string should be a reasonable start.
4639 for i in 1 2 3 4 5 6 7 8 ; do
4640 teststring=$teststring$teststring
4641 done
4642 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4643 # If test is not a shell built-in, we'll probably end up computing a
4644 # maximum length that is only half of the actual maximum length, but
4645 # we can't tell.
Lev Walkinaef10c32014-01-14 01:47:25 -08004646 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4647 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Lev Walkin4da95cf2010-10-16 02:46:32 -07004648 test $i != 17 # 1/2 MB should be enough
4649 do
4650 i=`expr $i + 1`
4651 teststring=$teststring$teststring
4652 done
4653 # Only check the string length outside the loop.
4654 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4655 teststring=
4656 # Add a significant safety factor because C++ compilers can tack on
4657 # massive amounts of additional arguments before passing them to the
4658 # linker. It appears as though 1/2 is a usable value.
4659 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4660 fi
4661 ;;
4662 esac
4663
4664fi
4665
4666if test -n $lt_cv_sys_max_cmd_len ; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004668$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004669else
Lev Walkinaef10c32014-01-14 01:47:25 -08004670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004671$as_echo "none" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004672fi
4673max_cmd_len=$lt_cv_sys_max_cmd_len
4674
4675
4676
4677
4678
4679
4680: ${CP="cp -f"}
4681: ${MV="mv -f"}
4682: ${RM="rm -f"}
4683
Lev Walkinaef10c32014-01-14 01:47:25 -08004684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004685$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004686# Try some XSI features
4687xsi_shell=no
4688( _lt_dummy="a/b/c"
Lev Walkinaef10c32014-01-14 01:47:25 -08004689 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4690 = c,a/b,b/c, \
Lev Walkin4da95cf2010-10-16 02:46:32 -07004691 && eval 'test $(( 1 + 1 )) -eq 2 \
4692 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4693 && xsi_shell=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08004694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004695$as_echo "$xsi_shell" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004696
4697
Lev Walkinaef10c32014-01-14 01:47:25 -08004698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004699$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004700lt_shell_append=no
4701( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4702 >/dev/null 2>&1 \
4703 && lt_shell_append=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08004704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004705$as_echo "$lt_shell_append" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004706
4707
4708if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4709 lt_unset=unset
4710else
4711 lt_unset=false
4712fi
4713
4714
4715
4716
4717
4718# test EBCDIC or ASCII
4719case `echo X|tr X '\101'` in
4720 A) # ASCII based system
4721 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4722 lt_SP2NL='tr \040 \012'
4723 lt_NL2SP='tr \015\012 \040\040'
4724 ;;
4725 *) # EBCDIC based system
4726 lt_SP2NL='tr \100 \n'
4727 lt_NL2SP='tr \r\n \100\100'
4728 ;;
4729esac
4730
4731
4732
4733
4734
4735
4736
4737
4738
Lev Walkinaef10c32014-01-14 01:47:25 -08004739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4740$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4741if ${lt_cv_to_host_file_cmd+:} false; then :
4742 $as_echo_n "(cached) " >&6
4743else
4744 case $host in
4745 *-*-mingw* )
4746 case $build in
4747 *-*-mingw* ) # actually msys
4748 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4749 ;;
4750 *-*-cygwin* )
4751 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4752 ;;
4753 * ) # otherwise, assume *nix
4754 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4755 ;;
4756 esac
4757 ;;
4758 *-*-cygwin* )
4759 case $build in
4760 *-*-mingw* ) # actually msys
4761 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4762 ;;
4763 *-*-cygwin* )
4764 lt_cv_to_host_file_cmd=func_convert_file_noop
4765 ;;
4766 * ) # otherwise, assume *nix
4767 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4768 ;;
4769 esac
4770 ;;
4771 * ) # unhandled hosts (and "normal" native builds)
4772 lt_cv_to_host_file_cmd=func_convert_file_noop
4773 ;;
4774esac
4775
4776fi
4777
4778to_host_file_cmd=$lt_cv_to_host_file_cmd
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4780$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4781
4782
4783
4784
4785
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4787$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4788if ${lt_cv_to_tool_file_cmd+:} false; then :
4789 $as_echo_n "(cached) " >&6
4790else
4791 #assume ordinary cross tools, or native build.
4792lt_cv_to_tool_file_cmd=func_convert_file_noop
4793case $host in
4794 *-*-mingw* )
4795 case $build in
4796 *-*-mingw* ) # actually msys
4797 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4798 ;;
4799 esac
4800 ;;
4801esac
4802
4803fi
4804
4805to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4807$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4808
4809
4810
4811
4812
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004814$as_echo_n "checking for $LD option to reload object files... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004815if ${lt_cv_ld_reload_flag+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004816 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004817else
4818 lt_cv_ld_reload_flag='-r'
4819fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004821$as_echo "$lt_cv_ld_reload_flag" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004822reload_flag=$lt_cv_ld_reload_flag
4823case $reload_flag in
4824"" | " "*) ;;
4825*) reload_flag=" $reload_flag" ;;
4826esac
4827reload_cmds='$LD$reload_flag -o $output$reload_objs'
4828case $host_os in
Lev Walkinaef10c32014-01-14 01:47:25 -08004829 cygwin* | mingw* | pw32* | cegcc*)
4830 if test "$GCC" != yes; then
4831 reload_cmds=false
4832 fi
4833 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07004834 darwin*)
4835 if test "$GCC" = yes; then
4836 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4837 else
4838 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4839 fi
4840 ;;
4841esac
4842
4843
4844
4845
4846
4847
4848
4849
4850
Lev Walkinaef10c32014-01-14 01:47:25 -08004851if test -n "$ac_tool_prefix"; then
4852 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4853set dummy ${ac_tool_prefix}objdump; ac_word=$2
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855$as_echo_n "checking for $ac_word... " >&6; }
4856if ${ac_cv_prog_OBJDUMP+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858else
4859 if test -n "$OBJDUMP"; then
4860 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4861else
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4872 fi
4873done
4874 done
4875IFS=$as_save_IFS
Lev Walkin4da95cf2010-10-16 02:46:32 -07004876
Lev Walkinaef10c32014-01-14 01:47:25 -08004877fi
4878fi
4879OBJDUMP=$ac_cv_prog_OBJDUMP
4880if test -n "$OBJDUMP"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4882$as_echo "$OBJDUMP" >&6; }
4883else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885$as_echo "no" >&6; }
4886fi
4887
4888
4889fi
4890if test -z "$ac_cv_prog_OBJDUMP"; then
4891 ac_ct_OBJDUMP=$OBJDUMP
4892 # Extract the first word of "objdump", so it can be a program name with args.
4893set dummy objdump; ac_word=$2
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895$as_echo_n "checking for $ac_word... " >&6; }
4896if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898else
4899 if test -n "$ac_ct_OBJDUMP"; then
4900 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4901else
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4912 fi
4913done
4914 done
4915IFS=$as_save_IFS
4916
4917fi
4918fi
4919ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4920if test -n "$ac_ct_OBJDUMP"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4922$as_echo "$ac_ct_OBJDUMP" >&6; }
4923else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925$as_echo "no" >&6; }
4926fi
4927
4928 if test "x$ac_ct_OBJDUMP" = x; then
4929 OBJDUMP="false"
4930 else
4931 case $cross_compiling:$ac_tool_warned in
4932yes:)
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935ac_tool_warned=yes ;;
4936esac
4937 OBJDUMP=$ac_ct_OBJDUMP
4938 fi
4939else
4940 OBJDUMP="$ac_cv_prog_OBJDUMP"
4941fi
4942
4943test -z "$OBJDUMP" && OBJDUMP=objdump
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004954$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004955if ${lt_cv_deplibs_check_method+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004956 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00004957else
4958 lt_cv_file_magic_cmd='$MAGIC_CMD'
4959lt_cv_file_magic_test_file=
4960lt_cv_deplibs_check_method='unknown'
4961# Need to set the preceding variable on all platforms that support
4962# interlibrary dependencies.
4963# 'none' -- dependencies not supported.
4964# `unknown' -- same as none, but documents that we really don't know.
4965# 'pass_all' -- all dependencies passed with no checks.
4966# 'test_compile' -- check by making test program.
4967# 'file_magic [[regex]]' -- check by looking for files in library path
4968# which responds to the $file_magic_cmd with a given extended regex.
4969# If you have `file' or equivalent on your system and you're not sure
4970# whether `pass_all' will *always* work, you probably want this one.
Lev Walkinf15320b2004-06-03 03:38:44 +00004971
Lev Walkin8e8b5482004-06-17 23:42:48 +00004972case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07004973aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004974 lt_cv_deplibs_check_method=pass_all
4975 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00004976
Lev Walkin8e8b5482004-06-17 23:42:48 +00004977beos*)
4978 lt_cv_deplibs_check_method=pass_all
4979 ;;
4980
Lev Walkinfbf1d282007-12-03 14:58:39 +00004981bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4983 lt_cv_file_magic_cmd='/usr/bin/file -L'
4984 lt_cv_file_magic_test_file=/shlib/libc.so
4985 ;;
4986
4987cygwin*)
4988 # func_win32_libid is a shell function defined in ltmain.sh
4989 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4990 lt_cv_file_magic_cmd='func_win32_libid'
4991 ;;
4992
4993mingw* | pw32*)
4994 # Base MSYS/MinGW do not provide the 'file' command needed by
Lev Walkin4da95cf2010-10-16 02:46:32 -07004995 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4996 # unless we find 'file', for example because we are cross-compiling.
Lev Walkinaef10c32014-01-14 01:47:25 -08004997 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4998 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004999 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5000 lt_cv_file_magic_cmd='func_win32_libid'
5001 else
Lev Walkinaef10c32014-01-14 01:47:25 -08005002 # Keep this pattern in sync with the one in func_win32_libid.
5003 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Lev Walkin4da95cf2010-10-16 02:46:32 -07005004 lt_cv_file_magic_cmd='$OBJDUMP -f'
5005 fi
5006 ;;
5007
Lev Walkinaef10c32014-01-14 01:47:25 -08005008cegcc*)
5009 # use the weaker test based on 'objdump'. See mingw*.
5010 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5011 lt_cv_file_magic_cmd='$OBJDUMP -f'
5012 ;;
5013
Lev Walkin8e8b5482004-06-17 23:42:48 +00005014darwin* | rhapsody*)
5015 lt_cv_deplibs_check_method=pass_all
5016 ;;
5017
Lev Walkin4da95cf2010-10-16 02:46:32 -07005018freebsd* | dragonfly*)
5019 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005020 case $host_cpu in
5021 i*86 )
5022 # Not sure whether the presence of OpenBSD here was a mistake.
5023 # Let's accept both of them until this is cleared up.
Lev Walkinfbf1d282007-12-03 14:58:39 +00005024 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005025 lt_cv_file_magic_cmd=/usr/bin/file
5026 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5027 ;;
5028 esac
5029 else
5030 lt_cv_deplibs_check_method=pass_all
5031 fi
5032 ;;
5033
5034gnu*)
5035 lt_cv_deplibs_check_method=pass_all
5036 ;;
5037
Lev Walkinaef10c32014-01-14 01:47:25 -08005038haiku*)
5039 lt_cv_deplibs_check_method=pass_all
5040 ;;
5041
Lev Walkin8e8b5482004-06-17 23:42:48 +00005042hpux10.20* | hpux11*)
5043 lt_cv_file_magic_cmd=/usr/bin/file
Lev Walkinfbf1d282007-12-03 14:58:39 +00005044 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00005045 ia64*)
5046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5047 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5048 ;;
5049 hppa*64*)
Lev Walkinaef10c32014-01-14 01:47:25 -08005050 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]'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005051 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5052 ;;
5053 *)
Lev Walkinaef10c32014-01-14 01:47:25 -08005054 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005055 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5056 ;;
5057 esac
5058 ;;
5059
Lev Walkin4da95cf2010-10-16 02:46:32 -07005060interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00005061 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5063 ;;
5064
Lev Walkin8e8b5482004-06-17 23:42:48 +00005065irix5* | irix6* | nonstopux*)
5066 case $LD in
5067 *-32|*"-32 ") libmagic=32-bit;;
5068 *-n32|*"-n32 ") libmagic=N32;;
5069 *-64|*"-64 ") libmagic=64-bit;;
5070 *) libmagic=never-match;;
5071 esac
5072 lt_cv_deplibs_check_method=pass_all
5073 ;;
5074
5075# This must be Linux ELF.
Lev Walkinaef10c32014-01-14 01:47:25 -08005076linux* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005077 lt_cv_deplibs_check_method=pass_all
5078 ;;
5079
5080netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07005081 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5083 else
5084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5085 fi
5086 ;;
5087
5088newos6*)
5089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5090 lt_cv_file_magic_cmd=/usr/bin/file
5091 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5092 ;;
5093
Lev Walkin4da95cf2010-10-16 02:46:32 -07005094*nto* | *qnx*)
5095 lt_cv_deplibs_check_method=pass_all
Lev Walkin8e8b5482004-06-17 23:42:48 +00005096 ;;
5097
5098openbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07005099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00005100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005101 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00005102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005103 fi
5104 ;;
5105
5106osf3* | osf4* | osf5*)
5107 lt_cv_deplibs_check_method=pass_all
5108 ;;
5109
Lev Walkin4da95cf2010-10-16 02:46:32 -07005110rdos*)
5111 lt_cv_deplibs_check_method=pass_all
5112 ;;
5113
Lev Walkin8e8b5482004-06-17 23:42:48 +00005114solaris*)
5115 lt_cv_deplibs_check_method=pass_all
5116 ;;
5117
Lev Walkin4da95cf2010-10-16 02:46:32 -07005118sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5119 lt_cv_deplibs_check_method=pass_all
5120 ;;
5121
Lev Walkinfbf1d282007-12-03 14:58:39 +00005122sysv4 | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005123 case $host_vendor in
5124 motorola)
5125 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]'
5126 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5127 ;;
5128 ncr)
5129 lt_cv_deplibs_check_method=pass_all
5130 ;;
5131 sequent)
5132 lt_cv_file_magic_cmd='/bin/file'
5133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5134 ;;
5135 sni)
5136 lt_cv_file_magic_cmd='/bin/file'
5137 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5138 lt_cv_file_magic_test_file=/lib/libc.so
5139 ;;
5140 siemens)
5141 lt_cv_deplibs_check_method=pass_all
5142 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00005143 pc)
5144 lt_cv_deplibs_check_method=pass_all
5145 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00005146 esac
5147 ;;
5148
Lev Walkin4da95cf2010-10-16 02:46:32 -07005149tpf*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005150 lt_cv_deplibs_check_method=pass_all
5151 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00005152esac
5153
Lev Walkin8e8b5482004-06-17 23:42:48 +00005154fi
Lev Walkinaef10c32014-01-14 01:47:25 -08005155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005156$as_echo "$lt_cv_deplibs_check_method" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005157
5158file_magic_glob=
5159want_nocaseglob=no
5160if test "$build" = "$host"; then
5161 case $host_os in
5162 mingw* | pw32*)
5163 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5164 want_nocaseglob=yes
5165 else
5166 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5167 fi
5168 ;;
5169 esac
5170fi
5171
Lev Walkin8e8b5482004-06-17 23:42:48 +00005172file_magic_cmd=$lt_cv_file_magic_cmd
5173deplibs_check_method=$lt_cv_deplibs_check_method
5174test -z "$deplibs_check_method" && deplibs_check_method=unknown
5175
5176
5177
5178
Lev Walkin4da95cf2010-10-16 02:46:32 -07005179
5180
5181
5182
5183
5184
5185
5186
Lev Walkinaef10c32014-01-14 01:47:25 -08005187
5188
5189
5190
5191
5192
5193
5194
5195
5196
Lev Walkin4da95cf2010-10-16 02:46:32 -07005197if test -n "$ac_tool_prefix"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005198 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5199set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005201$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005202if ${ac_cv_prog_DLLTOOL+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204else
5205 if test -n "$DLLTOOL"; then
5206 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5207else
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5218 fi
5219done
5220 done
5221IFS=$as_save_IFS
5222
5223fi
5224fi
5225DLLTOOL=$ac_cv_prog_DLLTOOL
5226if test -n "$DLLTOOL"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5228$as_echo "$DLLTOOL" >&6; }
5229else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231$as_echo "no" >&6; }
5232fi
5233
5234
5235fi
5236if test -z "$ac_cv_prog_DLLTOOL"; then
5237 ac_ct_DLLTOOL=$DLLTOOL
5238 # Extract the first word of "dlltool", so it can be a program name with args.
5239set dummy dlltool; ac_word=$2
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241$as_echo_n "checking for $ac_word... " >&6; }
5242if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244else
5245 if test -n "$ac_ct_DLLTOOL"; then
5246 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5247else
5248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249for as_dir in $PATH
5250do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259done
5260 done
5261IFS=$as_save_IFS
5262
5263fi
5264fi
5265ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5266if test -n "$ac_ct_DLLTOOL"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5268$as_echo "$ac_ct_DLLTOOL" >&6; }
5269else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271$as_echo "no" >&6; }
5272fi
5273
5274 if test "x$ac_ct_DLLTOOL" = x; then
5275 DLLTOOL="false"
5276 else
5277 case $cross_compiling:$ac_tool_warned in
5278yes:)
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281ac_tool_warned=yes ;;
5282esac
5283 DLLTOOL=$ac_ct_DLLTOOL
5284 fi
5285else
5286 DLLTOOL="$ac_cv_prog_DLLTOOL"
5287fi
5288
5289test -z "$DLLTOOL" && DLLTOOL=dlltool
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5301$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5302if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304else
5305 lt_cv_sharedlib_from_linklib_cmd='unknown'
5306
5307case $host_os in
5308cygwin* | mingw* | pw32* | cegcc*)
5309 # two different shell functions defined in ltmain.sh
5310 # decide which to use based on capabilities of $DLLTOOL
5311 case `$DLLTOOL --help 2>&1` in
5312 *--identify-strict*)
5313 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5314 ;;
5315 *)
5316 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5317 ;;
5318 esac
5319 ;;
5320*)
5321 # fallback: assume linklib IS sharedlib
5322 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5323 ;;
5324esac
5325
5326fi
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5328$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5329sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5330test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5331
5332
5333
5334
5335
5336
5337
5338
5339if test -n "$ac_tool_prefix"; then
5340 for ac_prog in ar
5341 do
5342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5343set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345$as_echo_n "checking for $ac_word... " >&6; }
5346if ${ac_cv_prog_AR+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005347 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005348else
5349 if test -n "$AR"; then
5350 ac_cv_prog_AR="$AR" # Let the user override the test.
5351else
5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH
5354do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005361 break 2
5362 fi
5363done
Lev Walkinaef10c32014-01-14 01:47:25 -08005364 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005365IFS=$as_save_IFS
5366
5367fi
5368fi
5369AR=$ac_cv_prog_AR
5370if test -n "$AR"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005372$as_echo "$AR" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005373else
Lev Walkinaef10c32014-01-14 01:47:25 -08005374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005375$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005376fi
5377
5378
Lev Walkinaef10c32014-01-14 01:47:25 -08005379 test -n "$AR" && break
5380 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005381fi
Lev Walkinaef10c32014-01-14 01:47:25 -08005382if test -z "$AR"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005383 ac_ct_AR=$AR
Lev Walkinaef10c32014-01-14 01:47:25 -08005384 for ac_prog in ar
5385do
5386 # Extract the first word of "$ac_prog", so it can be a program name with args.
5387set dummy $ac_prog; ac_word=$2
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005389$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005390if ${ac_cv_prog_ac_ct_AR+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005391 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005392else
5393 if test -n "$ac_ct_AR"; then
5394 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5395else
5396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397for as_dir in $PATH
5398do
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403 ac_cv_prog_ac_ct_AR="$ac_prog"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005405 break 2
5406 fi
5407done
Lev Walkinaef10c32014-01-14 01:47:25 -08005408 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005409IFS=$as_save_IFS
5410
5411fi
5412fi
5413ac_ct_AR=$ac_cv_prog_ac_ct_AR
5414if test -n "$ac_ct_AR"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005416$as_echo "$ac_ct_AR" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005417else
Lev Walkinaef10c32014-01-14 01:47:25 -08005418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005419$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005420fi
5421
Lev Walkinaef10c32014-01-14 01:47:25 -08005422
5423 test -n "$ac_ct_AR" && break
5424done
5425
Lev Walkin4da95cf2010-10-16 02:46:32 -07005426 if test "x$ac_ct_AR" = x; then
5427 AR="false"
5428 else
5429 case $cross_compiling:$ac_tool_warned in
5430yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08005431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005433ac_tool_warned=yes ;;
5434esac
5435 AR=$ac_ct_AR
5436 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07005437fi
5438
Lev Walkinaef10c32014-01-14 01:47:25 -08005439: ${AR=ar}
5440: ${AR_FLAGS=cru}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005441
Lev Walkin4da95cf2010-10-16 02:46:32 -07005442
Lev Walkin4c776e52010-11-08 02:07:31 -08005443
5444
Lev Walkin4da95cf2010-10-16 02:46:32 -07005445
5446
5447
5448
5449
5450
5451
Lev Walkinaef10c32014-01-14 01:47:25 -08005452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5453$as_echo_n "checking for archiver @FILE support... " >&6; }
5454if ${lt_cv_ar_at_file+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456else
5457 lt_cv_ar_at_file=no
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459/* end confdefs.h. */
5460
5461int
5462main ()
5463{
5464
5465 ;
5466 return 0;
5467}
5468_ACEOF
5469if ac_fn_c_try_compile "$LINENO"; then :
5470 echo conftest.$ac_objext > conftest.lst
5471 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5473 (eval $lt_ar_try) 2>&5
5474 ac_status=$?
5475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5476 test $ac_status = 0; }
5477 if test "$ac_status" -eq 0; then
5478 # Ensure the archiver fails upon bogus file names.
5479 rm -f conftest.$ac_objext libconftest.a
5480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5481 (eval $lt_ar_try) 2>&5
5482 ac_status=$?
5483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5484 test $ac_status = 0; }
5485 if test "$ac_status" -ne 0; then
5486 lt_cv_ar_at_file=@
5487 fi
5488 fi
5489 rm -f conftest.* libconftest.a
5490
5491fi
5492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493
5494fi
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5496$as_echo "$lt_cv_ar_at_file" >&6; }
5497
5498if test "x$lt_cv_ar_at_file" = xno; then
5499 archiver_list_spec=
5500else
5501 archiver_list_spec=$lt_cv_ar_at_file
5502fi
5503
5504
5505
5506
5507
5508
5509
Lev Walkin4da95cf2010-10-16 02:46:32 -07005510if test -n "$ac_tool_prefix"; then
5511 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5512set dummy ${ac_tool_prefix}strip; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08005513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005514$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005515if ${ac_cv_prog_STRIP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005516 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005517else
5518 if test -n "$STRIP"; then
5519 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5520else
5521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522for as_dir in $PATH
5523do
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005528 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Lev Walkinaef10c32014-01-14 01:47:25 -08005529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005530 break 2
5531 fi
5532done
Lev Walkinaef10c32014-01-14 01:47:25 -08005533 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005534IFS=$as_save_IFS
5535
5536fi
5537fi
5538STRIP=$ac_cv_prog_STRIP
5539if test -n "$STRIP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005541$as_echo "$STRIP" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005542else
Lev Walkinaef10c32014-01-14 01:47:25 -08005543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005544$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005545fi
5546
5547
5548fi
5549if test -z "$ac_cv_prog_STRIP"; then
5550 ac_ct_STRIP=$STRIP
5551 # Extract the first word of "strip", so it can be a program name with args.
5552set dummy strip; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08005553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005554$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005555if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005556 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005557else
5558 if test -n "$ac_ct_STRIP"; then
5559 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5560else
5561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562for as_dir in $PATH
5563do
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005568 ac_cv_prog_ac_ct_STRIP="strip"
Lev Walkinaef10c32014-01-14 01:47:25 -08005569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005570 break 2
5571 fi
5572done
Lev Walkinaef10c32014-01-14 01:47:25 -08005573 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005574IFS=$as_save_IFS
5575
5576fi
5577fi
5578ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5579if test -n "$ac_ct_STRIP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005581$as_echo "$ac_ct_STRIP" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005582else
Lev Walkinaef10c32014-01-14 01:47:25 -08005583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005584$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005585fi
5586
5587 if test "x$ac_ct_STRIP" = x; then
5588 STRIP=":"
5589 else
5590 case $cross_compiling:$ac_tool_warned in
5591yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08005592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005594ac_tool_warned=yes ;;
5595esac
5596 STRIP=$ac_ct_STRIP
5597 fi
5598else
5599 STRIP="$ac_cv_prog_STRIP"
5600fi
5601
5602test -z "$STRIP" && STRIP=:
5603
5604
5605
5606
5607
5608
5609if test -n "$ac_tool_prefix"; then
5610 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5611set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08005612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005613$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005614if ${ac_cv_prog_RANLIB+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005615 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005616else
5617 if test -n "$RANLIB"; then
5618 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5619else
5620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621for as_dir in $PATH
5622do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005627 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Lev Walkinaef10c32014-01-14 01:47:25 -08005628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005629 break 2
5630 fi
5631done
Lev Walkinaef10c32014-01-14 01:47:25 -08005632 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005633IFS=$as_save_IFS
5634
5635fi
5636fi
5637RANLIB=$ac_cv_prog_RANLIB
5638if test -n "$RANLIB"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005640$as_echo "$RANLIB" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005641else
Lev Walkinaef10c32014-01-14 01:47:25 -08005642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005643$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005644fi
5645
5646
5647fi
5648if test -z "$ac_cv_prog_RANLIB"; then
5649 ac_ct_RANLIB=$RANLIB
5650 # Extract the first word of "ranlib", so it can be a program name with args.
5651set dummy ranlib; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08005652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005653$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005654if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005655 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005656else
5657 if test -n "$ac_ct_RANLIB"; then
5658 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5659else
5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661for as_dir in $PATH
5662do
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005667 ac_cv_prog_ac_ct_RANLIB="ranlib"
Lev Walkinaef10c32014-01-14 01:47:25 -08005668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005669 break 2
5670 fi
5671done
Lev Walkinaef10c32014-01-14 01:47:25 -08005672 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005673IFS=$as_save_IFS
5674
5675fi
5676fi
5677ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5678if test -n "$ac_ct_RANLIB"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005680$as_echo "$ac_ct_RANLIB" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005681else
Lev Walkinaef10c32014-01-14 01:47:25 -08005682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005683$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005684fi
5685
5686 if test "x$ac_ct_RANLIB" = x; then
5687 RANLIB=":"
5688 else
5689 case $cross_compiling:$ac_tool_warned in
5690yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08005691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005693ac_tool_warned=yes ;;
5694esac
5695 RANLIB=$ac_ct_RANLIB
5696 fi
5697else
5698 RANLIB="$ac_cv_prog_RANLIB"
5699fi
5700
5701test -z "$RANLIB" && RANLIB=:
5702
5703
5704
5705
5706
5707
5708# Determine commands to create old-style static archives.
5709old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5710old_postinstall_cmds='chmod 644 $oldlib'
5711old_postuninstall_cmds=
5712
5713if test -n "$RANLIB"; then
5714 case $host_os in
5715 openbsd*)
5716 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5717 ;;
5718 *)
5719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5720 ;;
5721 esac
5722 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5723fi
5724
Lev Walkinaef10c32014-01-14 01:47:25 -08005725case $host_os in
5726 darwin*)
5727 lock_old_archive_extraction=yes ;;
5728 *)
5729 lock_old_archive_extraction=no ;;
5730esac
5731
5732
5733
5734
5735
5736
Lev Walkin4da95cf2010-10-16 02:46:32 -07005737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
Lev Walkin8e8b5482004-06-17 23:42:48 +00005770# If no C compiler was specified, use CC.
5771LTCC=${LTCC-"$CC"}
5772
Lev Walkinfbf1d282007-12-03 14:58:39 +00005773# If no C compiler flags were specified, use CFLAGS.
5774LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5775
Lev Walkin8e8b5482004-06-17 23:42:48 +00005776# Allow CC to be a program name with arguments.
5777compiler=$CC
Lev Walkinf15320b2004-06-03 03:38:44 +00005778
5779
Lev Walkin4da95cf2010-10-16 02:46:32 -07005780# Check for command to grab the raw symbol name followed by C symbol from nm.
Lev Walkinaef10c32014-01-14 01:47:25 -08005781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005782$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005783if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005784 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005785else
5786
5787# These are sane defaults that work on at least a few old systems.
5788# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5789
5790# Character class describing NM global symbol codes.
5791symcode='[BCDEGRST]'
5792
5793# Regexp to match symbols that can be accessed directly from C.
5794sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5795
5796# Define system-specific variables.
5797case $host_os in
5798aix*)
5799 symcode='[BCDT]'
5800 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08005801cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07005802 symcode='[ABCDGISTW]'
5803 ;;
5804hpux*)
5805 if test "$host_cpu" = ia64; then
5806 symcode='[ABCDEGRST]'
5807 fi
5808 ;;
5809irix* | nonstopux*)
5810 symcode='[BCDEGRST]'
5811 ;;
5812osf*)
5813 symcode='[BCDEGQRST]'
5814 ;;
5815solaris*)
5816 symcode='[BDRT]'
5817 ;;
5818sco3.2v5*)
5819 symcode='[DT]'
5820 ;;
5821sysv4.2uw2*)
5822 symcode='[DT]'
5823 ;;
5824sysv5* | sco5v6* | unixware* | OpenUNIX*)
5825 symcode='[ABDT]'
5826 ;;
5827sysv4)
5828 symcode='[DFNSTU]'
5829 ;;
5830esac
5831
5832# If we're using GNU nm, then use its standard symbol codes.
5833case `$NM -V 2>&1` in
5834*GNU* | *'with BFD'*)
5835 symcode='[ABCDGIRSTW]' ;;
5836esac
5837
5838# Transform an extracted symbol line into a proper C declaration.
5839# Some systems (esp. on ia64) link data and code symbols differently,
5840# so use this general approach.
5841lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5842
5843# Transform an extracted symbol line into symbol name and symbol address
Lev Walkinaef10c32014-01-14 01:47:25 -08005844lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5845lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
Lev Walkin4da95cf2010-10-16 02:46:32 -07005846
5847# Handle CRLF in mingw tool chain
5848opt_cr=
5849case $build_os in
5850mingw*)
5851 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5852 ;;
5853esac
5854
5855# Try without a prefix underscore, then with it.
5856for ac_symprfx in "" "_"; do
5857
5858 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5859 symxfrm="\\1 $ac_symprfx\\2 \\2"
5860
5861 # Write the raw and C identifiers.
5862 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5863 # Fake it for dumpbin and say T for any non-static function
5864 # and D for any global variable.
5865 # Also find C++ and __fastcall symbols from MSVC++,
5866 # which start with @ or ?.
5867 lt_cv_sys_global_symbol_pipe="$AWK '"\
5868" {last_section=section; section=\$ 3};"\
5869" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5870" \$ 0!~/External *\|/{next};"\
5871" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5872" {if(hide[section]) next};"\
5873" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5874" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5875" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5876" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5877" ' prfx=^$ac_symprfx"
5878 else
5879 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5880 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08005881 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Lev Walkin4da95cf2010-10-16 02:46:32 -07005882
5883 # Check to see that the pipe works correctly.
5884 pipe_works=no
5885
Lev Walkinaef10c32014-01-14 01:47:25 -08005886 rm -f conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07005887 cat > conftest.$ac_ext <<_LT_EOF
5888#ifdef __cplusplus
5889extern "C" {
5890#endif
5891char nm_test_var;
5892void nm_test_func(void);
5893void nm_test_func(void){}
5894#ifdef __cplusplus
5895}
5896#endif
5897int main(){nm_test_var='a';nm_test_func();return(0);}
5898_LT_EOF
5899
Lev Walkinaef10c32014-01-14 01:47:25 -08005900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005901 (eval $ac_compile) 2>&5
5902 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08005903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5904 test $ac_status = 0; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005905 # Now try to grab the symbols.
5906 nlist=conftest.nm
Lev Walkinaef10c32014-01-14 01:47:25 -08005907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5908 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005909 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08005910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5911 test $ac_status = 0; } && test -s "$nlist"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005912 # Try sorting and uniquifying the output.
5913 if sort "$nlist" | uniq > "$nlist"T; then
5914 mv -f "$nlist"T "$nlist"
5915 else
5916 rm -f "$nlist"T
5917 fi
5918
5919 # Make sure that we snagged all the symbols we need.
5920 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5921 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5922 cat <<_LT_EOF > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08005923/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5924#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5925/* DATA imports from DLLs on WIN32 con't be const, because runtime
5926 relocations are performed -- see ld's documentation on pseudo-relocs. */
5927# define LT_DLSYM_CONST
5928#elif defined(__osf__)
5929/* This system does not cope well with relocations in const data. */
5930# define LT_DLSYM_CONST
5931#else
5932# define LT_DLSYM_CONST const
5933#endif
5934
Lev Walkin4da95cf2010-10-16 02:46:32 -07005935#ifdef __cplusplus
5936extern "C" {
5937#endif
5938
5939_LT_EOF
5940 # Now generate the symbol file.
5941 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5942
5943 cat <<_LT_EOF >> conftest.$ac_ext
5944
5945/* The mapping between symbol names and symbols. */
Lev Walkinaef10c32014-01-14 01:47:25 -08005946LT_DLSYM_CONST struct {
Lev Walkin4da95cf2010-10-16 02:46:32 -07005947 const char *name;
5948 void *address;
5949}
5950lt__PROGRAM__LTX_preloaded_symbols[] =
5951{
5952 { "@PROGRAM@", (void *) 0 },
5953_LT_EOF
5954 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5955 cat <<\_LT_EOF >> conftest.$ac_ext
5956 {0, (void *) 0}
5957};
5958
5959/* This works around a problem in FreeBSD linker */
5960#ifdef FREEBSD_WORKAROUND
5961static const void *lt_preloaded_setup() {
5962 return lt__PROGRAM__LTX_preloaded_symbols;
5963}
5964#endif
5965
5966#ifdef __cplusplus
5967}
5968#endif
5969_LT_EOF
5970 # Now try linking the two files.
5971 mv conftest.$ac_objext conftstm.$ac_objext
Lev Walkinaef10c32014-01-14 01:47:25 -08005972 lt_globsym_save_LIBS=$LIBS
5973 lt_globsym_save_CFLAGS=$CFLAGS
Lev Walkin4da95cf2010-10-16 02:46:32 -07005974 LIBS="conftstm.$ac_objext"
5975 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Lev Walkinaef10c32014-01-14 01:47:25 -08005976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005977 (eval $ac_link) 2>&5
5978 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08005979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5980 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005981 pipe_works=yes
5982 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08005983 LIBS=$lt_globsym_save_LIBS
5984 CFLAGS=$lt_globsym_save_CFLAGS
Lev Walkin4da95cf2010-10-16 02:46:32 -07005985 else
5986 echo "cannot find nm_test_func in $nlist" >&5
5987 fi
5988 else
5989 echo "cannot find nm_test_var in $nlist" >&5
5990 fi
5991 else
5992 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5993 fi
5994 else
5995 echo "$progname: failed program was:" >&5
5996 cat conftest.$ac_ext >&5
5997 fi
5998 rm -rf conftest* conftst*
5999
6000 # Do not use the global_symbol_pipe unless it works.
6001 if test "$pipe_works" = yes; then
6002 break
6003 else
6004 lt_cv_sys_global_symbol_pipe=
6005 fi
6006done
6007
6008fi
6009
6010if test -z "$lt_cv_sys_global_symbol_pipe"; then
6011 lt_cv_sys_global_symbol_to_cdecl=
6012fi
6013if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006015$as_echo "failed" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006016else
Lev Walkinaef10c32014-01-14 01:47:25 -08006017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006018$as_echo "ok" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006019fi
6020
Lev Walkinaef10c32014-01-14 01:47:25 -08006021# Response file support.
6022if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6023 nm_file_list_spec='@'
6024elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6025 nm_file_list_spec='@'
6026fi
6027
Lev Walkin4da95cf2010-10-16 02:46:32 -07006028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
Lev Walkinaef10c32014-01-14 01:47:25 -08006050
6051
6052
6053
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6055$as_echo_n "checking for sysroot... " >&6; }
6056
6057# Check whether --with-sysroot was given.
6058if test "${with_sysroot+set}" = set; then :
6059 withval=$with_sysroot;
6060else
6061 with_sysroot=no
6062fi
6063
6064
6065lt_sysroot=
6066case ${with_sysroot} in #(
6067 yes)
6068 if test "$GCC" = yes; then
6069 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6070 fi
6071 ;; #(
6072 /*)
6073 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6074 ;; #(
6075 no|'')
6076 ;; #(
6077 *)
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6079$as_echo "${with_sysroot}" >&6; }
6080 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6081 ;;
6082esac
6083
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6085$as_echo "${lt_sysroot:-no}" >&6; }
6086
6087
6088
6089
6090
Lev Walkin27fd0b62007-08-27 23:57:45 +00006091# Check whether --enable-libtool-lock was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08006092if test "${enable_libtool_lock+set}" = set; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00006093 enableval=$enable_libtool_lock;
6094fi
Lev Walkinf15320b2004-06-03 03:38:44 +00006095
Lev Walkin8e8b5482004-06-17 23:42:48 +00006096test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00006097
6098# Some flags need to be propagated to the compiler or linker for good
6099# libtool support.
Lev Walkin8e8b5482004-06-17 23:42:48 +00006100case $host in
6101ia64-*-hpux*)
Lev Walkinf15320b2004-06-03 03:38:44 +00006102 # Find out which ABI we are using.
Lev Walkin8e8b5482004-06-17 23:42:48 +00006103 echo 'int i;' > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08006104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00006105 (eval $ac_compile) 2>&5
6106 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108 test $ac_status = 0; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006109 case `/usr/bin/file conftest.$ac_objext` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07006110 *ELF-32*)
6111 HPUX_IA64_MODE="32"
6112 ;;
6113 *ELF-64*)
6114 HPUX_IA64_MODE="64"
6115 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00006116 esac
6117 fi
6118 rm -rf conftest*
6119 ;;
6120*-*-irix6*)
6121 # Find out which ABI we are using.
Lev Walkinaef10c32014-01-14 01:47:25 -08006122 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006124 (eval $ac_compile) 2>&5
6125 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6127 test $ac_status = 0; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006128 if test "$lt_cv_prog_gnu_ld" = yes; then
6129 case `/usr/bin/file conftest.$ac_objext` in
6130 *32-bit*)
6131 LD="${LD-ld} -melf32bsmip"
6132 ;;
6133 *N32*)
6134 LD="${LD-ld} -melf32bmipn32"
6135 ;;
6136 *64-bit*)
6137 LD="${LD-ld} -melf64bmip"
6138 ;;
6139 esac
6140 else
6141 case `/usr/bin/file conftest.$ac_objext` in
6142 *32-bit*)
6143 LD="${LD-ld} -32"
6144 ;;
6145 *N32*)
6146 LD="${LD-ld} -n32"
6147 ;;
6148 *64-bit*)
6149 LD="${LD-ld} -64"
6150 ;;
6151 esac
6152 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00006153 fi
6154 rm -rf conftest*
6155 ;;
6156
Lev Walkin4da95cf2010-10-16 02:46:32 -07006157x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6158s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00006159 # Find out which ABI we are using.
6160 echo 'int i;' > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08006161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006162 (eval $ac_compile) 2>&5
6163 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6165 test $ac_status = 0; }; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00006166 case `/usr/bin/file conftest.o` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07006167 *32-bit*)
6168 case $host in
6169 x86_64-*kfreebsd*-gnu)
6170 LD="${LD-ld} -m elf_i386_fbsd"
6171 ;;
6172 x86_64-*linux*)
6173 LD="${LD-ld} -m elf_i386"
6174 ;;
6175 ppc64-*linux*|powerpc64-*linux*)
6176 LD="${LD-ld} -m elf32ppclinux"
6177 ;;
6178 s390x-*linux*)
6179 LD="${LD-ld} -m elf_s390"
6180 ;;
6181 sparc64-*linux*)
6182 LD="${LD-ld} -m elf32_sparc"
6183 ;;
6184 esac
6185 ;;
6186 *64-bit*)
6187 case $host in
6188 x86_64-*kfreebsd*-gnu)
6189 LD="${LD-ld} -m elf_x86_64_fbsd"
6190 ;;
6191 x86_64-*linux*)
6192 LD="${LD-ld} -m elf_x86_64"
6193 ;;
6194 ppc*-*linux*|powerpc*-*linux*)
6195 LD="${LD-ld} -m elf64ppc"
6196 ;;
6197 s390*-*linux*|s390*-*tpf*)
6198 LD="${LD-ld} -m elf64_s390"
6199 ;;
6200 sparc*-*linux*)
6201 LD="${LD-ld} -m elf64_sparc"
6202 ;;
6203 esac
6204 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00006205 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00006206 fi
6207 rm -rf conftest*
6208 ;;
6209
6210*-*-sco3.2v5*)
6211 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6212 SAVE_CFLAGS="$CFLAGS"
6213 CFLAGS="$CFLAGS -belf"
Lev Walkinaef10c32014-01-14 01:47:25 -08006214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006215$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006216if ${lt_cv_cc_needs_belf+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006217 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00006218else
Lev Walkin8e8b5482004-06-17 23:42:48 +00006219 ac_ext=c
6220ac_cpp='$CPP $CPPFLAGS'
6221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6223ac_compiler_gnu=$ac_cv_c_compiler_gnu
6224
Lev Walkinaef10c32014-01-14 01:47:25 -08006225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00006226/* end confdefs.h. */
6227
6228int
6229main ()
6230{
6231
6232 ;
6233 return 0;
6234}
6235_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08006236if ac_fn_c_try_link "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00006237 lt_cv_cc_needs_belf=yes
6238else
Lev Walkinaef10c32014-01-14 01:47:25 -08006239 lt_cv_cc_needs_belf=no
Lev Walkinf15320b2004-06-03 03:38:44 +00006240fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006241rm -f core conftest.err conftest.$ac_objext \
6242 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00006243 ac_ext=c
6244ac_cpp='$CPP $CPPFLAGS'
6245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6247ac_compiler_gnu=$ac_cv_c_compiler_gnu
6248
Lev Walkinf15320b2004-06-03 03:38:44 +00006249fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006251$as_echo "$lt_cv_cc_needs_belf" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00006252 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6253 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6254 CFLAGS="$SAVE_CFLAGS"
6255 fi
6256 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00006257sparc*-*solaris*)
6258 # Find out which ABI we are using.
6259 echo 'int i;' > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08006260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkinfbf1d282007-12-03 14:58:39 +00006261 (eval $ac_compile) 2>&5
6262 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264 test $ac_status = 0; }; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00006265 case `/usr/bin/file conftest.o` in
6266 *64-bit*)
6267 case $lt_cv_prog_gnu_ld in
6268 yes*) LD="${LD-ld} -m elf64_sparc" ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07006269 *)
6270 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6271 LD="${LD-ld} -64"
6272 fi
6273 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00006274 esac
6275 ;;
6276 esac
6277 fi
6278 rm -rf conftest*
6279 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00006280esac
6281
Lev Walkin8e8b5482004-06-17 23:42:48 +00006282need_locks="$enable_libtool_lock"
Lev Walkinf15320b2004-06-03 03:38:44 +00006283
Lev Walkinaef10c32014-01-14 01:47:25 -08006284if test -n "$ac_tool_prefix"; then
6285 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6286set dummy ${ac_tool_prefix}mt; ac_word=$2
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288$as_echo_n "checking for $ac_word... " >&6; }
6289if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6290 $as_echo_n "(cached) " >&6
6291else
6292 if test -n "$MANIFEST_TOOL"; then
6293 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6294else
6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH
6297do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6302 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6305 fi
6306done
6307 done
6308IFS=$as_save_IFS
6309
6310fi
6311fi
6312MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6313if test -n "$MANIFEST_TOOL"; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6315$as_echo "$MANIFEST_TOOL" >&6; }
6316else
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318$as_echo "no" >&6; }
6319fi
6320
6321
6322fi
6323if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6324 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6325 # Extract the first word of "mt", so it can be a program name with args.
6326set dummy mt; ac_word=$2
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328$as_echo_n "checking for $ac_word... " >&6; }
6329if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331else
6332 if test -n "$ac_ct_MANIFEST_TOOL"; then
6333 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6334else
6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336for as_dir in $PATH
6337do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6345 fi
6346done
6347 done
6348IFS=$as_save_IFS
6349
6350fi
6351fi
6352ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6353if test -n "$ac_ct_MANIFEST_TOOL"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6355$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6356else
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358$as_echo "no" >&6; }
6359fi
6360
6361 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6362 MANIFEST_TOOL=":"
6363 else
6364 case $cross_compiling:$ac_tool_warned in
6365yes:)
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368ac_tool_warned=yes ;;
6369esac
6370 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6371 fi
6372else
6373 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6374fi
6375
6376test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6378$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6379if ${lt_cv_path_mainfest_tool+:} false; then :
6380 $as_echo_n "(cached) " >&6
6381else
6382 lt_cv_path_mainfest_tool=no
6383 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6384 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6385 cat conftest.err >&5
6386 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6387 lt_cv_path_mainfest_tool=yes
6388 fi
6389 rm -f conftest*
6390fi
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6392$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6393if test "x$lt_cv_path_mainfest_tool" != xyes; then
6394 MANIFEST_TOOL=:
6395fi
6396
6397
6398
6399
6400
Lev Walkin4da95cf2010-10-16 02:46:32 -07006401
6402 case $host_os in
6403 rhapsody* | darwin*)
6404 if test -n "$ac_tool_prefix"; then
6405 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6406set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006408$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006409if ${ac_cv_prog_DSYMUTIL+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006410 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006411else
6412 if test -n "$DSYMUTIL"; then
6413 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6414else
6415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416for as_dir in $PATH
6417do
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006422 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Lev Walkinaef10c32014-01-14 01:47:25 -08006423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006424 break 2
6425 fi
6426done
Lev Walkinaef10c32014-01-14 01:47:25 -08006427 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006428IFS=$as_save_IFS
6429
6430fi
6431fi
6432DSYMUTIL=$ac_cv_prog_DSYMUTIL
6433if test -n "$DSYMUTIL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006435$as_echo "$DSYMUTIL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006436else
Lev Walkinaef10c32014-01-14 01:47:25 -08006437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006438$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006439fi
6440
6441
6442fi
6443if test -z "$ac_cv_prog_DSYMUTIL"; then
6444 ac_ct_DSYMUTIL=$DSYMUTIL
6445 # Extract the first word of "dsymutil", so it can be a program name with args.
6446set dummy dsymutil; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006448$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006449if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006450 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006451else
6452 if test -n "$ac_ct_DSYMUTIL"; then
6453 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6454else
6455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006462 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Lev Walkinaef10c32014-01-14 01:47:25 -08006463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006464 break 2
6465 fi
6466done
Lev Walkinaef10c32014-01-14 01:47:25 -08006467 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006468IFS=$as_save_IFS
6469
6470fi
6471fi
6472ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6473if test -n "$ac_ct_DSYMUTIL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006475$as_echo "$ac_ct_DSYMUTIL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006476else
Lev Walkinaef10c32014-01-14 01:47:25 -08006477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006478$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006479fi
6480
6481 if test "x$ac_ct_DSYMUTIL" = x; then
6482 DSYMUTIL=":"
6483 else
6484 case $cross_compiling:$ac_tool_warned in
6485yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006488ac_tool_warned=yes ;;
6489esac
6490 DSYMUTIL=$ac_ct_DSYMUTIL
6491 fi
6492else
6493 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6494fi
6495
6496 if test -n "$ac_tool_prefix"; then
6497 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6498set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006500$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006501if ${ac_cv_prog_NMEDIT+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006502 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006503else
6504 if test -n "$NMEDIT"; then
6505 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6506else
6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508for as_dir in $PATH
6509do
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006514 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Lev Walkinaef10c32014-01-14 01:47:25 -08006515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006516 break 2
6517 fi
6518done
Lev Walkinaef10c32014-01-14 01:47:25 -08006519 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006520IFS=$as_save_IFS
6521
6522fi
6523fi
6524NMEDIT=$ac_cv_prog_NMEDIT
6525if test -n "$NMEDIT"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006527$as_echo "$NMEDIT" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006528else
Lev Walkinaef10c32014-01-14 01:47:25 -08006529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006530$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006531fi
6532
6533
6534fi
6535if test -z "$ac_cv_prog_NMEDIT"; then
6536 ac_ct_NMEDIT=$NMEDIT
6537 # Extract the first word of "nmedit", so it can be a program name with args.
6538set dummy nmedit; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006540$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006541if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006542 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006543else
6544 if test -n "$ac_ct_NMEDIT"; then
6545 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6546else
6547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548for as_dir in $PATH
6549do
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006554 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Lev Walkinaef10c32014-01-14 01:47:25 -08006555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006556 break 2
6557 fi
6558done
Lev Walkinaef10c32014-01-14 01:47:25 -08006559 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006560IFS=$as_save_IFS
6561
6562fi
6563fi
6564ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6565if test -n "$ac_ct_NMEDIT"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006567$as_echo "$ac_ct_NMEDIT" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006568else
Lev Walkinaef10c32014-01-14 01:47:25 -08006569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006570$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006571fi
6572
6573 if test "x$ac_ct_NMEDIT" = x; then
6574 NMEDIT=":"
6575 else
6576 case $cross_compiling:$ac_tool_warned in
6577yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006580ac_tool_warned=yes ;;
6581esac
6582 NMEDIT=$ac_ct_NMEDIT
6583 fi
6584else
6585 NMEDIT="$ac_cv_prog_NMEDIT"
6586fi
6587
6588 if test -n "$ac_tool_prefix"; then
6589 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6590set dummy ${ac_tool_prefix}lipo; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006592$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006593if ${ac_cv_prog_LIPO+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006594 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006595else
6596 if test -n "$LIPO"; then
6597 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6598else
6599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600for as_dir in $PATH
6601do
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006606 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Lev Walkinaef10c32014-01-14 01:47:25 -08006607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006608 break 2
6609 fi
6610done
Lev Walkinaef10c32014-01-14 01:47:25 -08006611 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006612IFS=$as_save_IFS
6613
6614fi
6615fi
6616LIPO=$ac_cv_prog_LIPO
6617if test -n "$LIPO"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006619$as_echo "$LIPO" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006620else
Lev Walkinaef10c32014-01-14 01:47:25 -08006621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006622$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006623fi
6624
6625
6626fi
6627if test -z "$ac_cv_prog_LIPO"; then
6628 ac_ct_LIPO=$LIPO
6629 # Extract the first word of "lipo", so it can be a program name with args.
6630set dummy lipo; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006632$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006633if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006634 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006635else
6636 if test -n "$ac_ct_LIPO"; then
6637 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6638else
6639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640for as_dir in $PATH
6641do
6642 IFS=$as_save_IFS
6643 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006646 ac_cv_prog_ac_ct_LIPO="lipo"
Lev Walkinaef10c32014-01-14 01:47:25 -08006647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006648 break 2
6649 fi
6650done
Lev Walkinaef10c32014-01-14 01:47:25 -08006651 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006652IFS=$as_save_IFS
6653
6654fi
6655fi
6656ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6657if test -n "$ac_ct_LIPO"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006659$as_echo "$ac_ct_LIPO" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006660else
Lev Walkinaef10c32014-01-14 01:47:25 -08006661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006662$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006663fi
6664
6665 if test "x$ac_ct_LIPO" = x; then
6666 LIPO=":"
6667 else
6668 case $cross_compiling:$ac_tool_warned in
6669yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006672ac_tool_warned=yes ;;
6673esac
6674 LIPO=$ac_ct_LIPO
6675 fi
6676else
6677 LIPO="$ac_cv_prog_LIPO"
6678fi
6679
6680 if test -n "$ac_tool_prefix"; then
6681 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6682set dummy ${ac_tool_prefix}otool; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006684$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006685if ${ac_cv_prog_OTOOL+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006686 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006687else
6688 if test -n "$OTOOL"; then
6689 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6690else
6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692for as_dir in $PATH
6693do
6694 IFS=$as_save_IFS
6695 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006698 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Lev Walkinaef10c32014-01-14 01:47:25 -08006699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006700 break 2
6701 fi
6702done
Lev Walkinaef10c32014-01-14 01:47:25 -08006703 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006704IFS=$as_save_IFS
6705
6706fi
6707fi
6708OTOOL=$ac_cv_prog_OTOOL
6709if test -n "$OTOOL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006711$as_echo "$OTOOL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006712else
Lev Walkinaef10c32014-01-14 01:47:25 -08006713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006714$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006715fi
6716
6717
6718fi
6719if test -z "$ac_cv_prog_OTOOL"; then
6720 ac_ct_OTOOL=$OTOOL
6721 # Extract the first word of "otool", so it can be a program name with args.
6722set dummy otool; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006724$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006725if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006726 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006727else
6728 if test -n "$ac_ct_OTOOL"; then
6729 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6730else
6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
6733do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006738 ac_cv_prog_ac_ct_OTOOL="otool"
Lev Walkinaef10c32014-01-14 01:47:25 -08006739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006740 break 2
6741 fi
6742done
Lev Walkinaef10c32014-01-14 01:47:25 -08006743 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006744IFS=$as_save_IFS
6745
6746fi
6747fi
6748ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6749if test -n "$ac_ct_OTOOL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006751$as_echo "$ac_ct_OTOOL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006752else
Lev Walkinaef10c32014-01-14 01:47:25 -08006753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006754$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006755fi
6756
6757 if test "x$ac_ct_OTOOL" = x; then
6758 OTOOL=":"
6759 else
6760 case $cross_compiling:$ac_tool_warned in
6761yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006764ac_tool_warned=yes ;;
6765esac
6766 OTOOL=$ac_ct_OTOOL
6767 fi
6768else
6769 OTOOL="$ac_cv_prog_OTOOL"
6770fi
6771
6772 if test -n "$ac_tool_prefix"; then
6773 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6774set dummy ${ac_tool_prefix}otool64; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006776$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006777if ${ac_cv_prog_OTOOL64+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006778 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006779else
6780 if test -n "$OTOOL64"; then
6781 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6782else
6783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784for as_dir in $PATH
6785do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006790 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Lev Walkinaef10c32014-01-14 01:47:25 -08006791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006792 break 2
6793 fi
6794done
Lev Walkinaef10c32014-01-14 01:47:25 -08006795 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006796IFS=$as_save_IFS
6797
6798fi
6799fi
6800OTOOL64=$ac_cv_prog_OTOOL64
6801if test -n "$OTOOL64"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006803$as_echo "$OTOOL64" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006804else
Lev Walkinaef10c32014-01-14 01:47:25 -08006805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006806$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006807fi
6808
6809
6810fi
6811if test -z "$ac_cv_prog_OTOOL64"; then
6812 ac_ct_OTOOL64=$OTOOL64
6813 # Extract the first word of "otool64", so it can be a program name with args.
6814set dummy otool64; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006816$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006817if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006818 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006819else
6820 if test -n "$ac_ct_OTOOL64"; then
6821 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6822else
6823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824for as_dir in $PATH
6825do
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006830 ac_cv_prog_ac_ct_OTOOL64="otool64"
Lev Walkinaef10c32014-01-14 01:47:25 -08006831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006832 break 2
6833 fi
6834done
Lev Walkinaef10c32014-01-14 01:47:25 -08006835 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006836IFS=$as_save_IFS
6837
6838fi
6839fi
6840ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6841if test -n "$ac_ct_OTOOL64"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006843$as_echo "$ac_ct_OTOOL64" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006844else
Lev Walkinaef10c32014-01-14 01:47:25 -08006845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006846$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006847fi
6848
6849 if test "x$ac_ct_OTOOL64" = x; then
6850 OTOOL64=":"
6851 else
6852 case $cross_compiling:$ac_tool_warned in
6853yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006856ac_tool_warned=yes ;;
6857esac
6858 OTOOL64=$ac_ct_OTOOL64
6859 fi
6860else
6861 OTOOL64="$ac_cv_prog_OTOOL64"
6862fi
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
Lev Walkinaef10c32014-01-14 01:47:25 -08006890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006891$as_echo_n "checking for -single_module linker flag... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006892if ${lt_cv_apple_cc_single_mod+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006893 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006894else
6895 lt_cv_apple_cc_single_mod=no
6896 if test -z "${LT_MULTI_MODULE}"; then
6897 # By default we will add the -single_module flag. You can override
6898 # by either setting the environment variable LT_MULTI_MODULE
6899 # non-empty at configure time, or by adding -multi_module to the
6900 # link flags.
6901 rm -rf libconftest.dylib*
6902 echo "int foo(void){return 1;}" > conftest.c
6903 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6904-dynamiclib -Wl,-single_module conftest.c" >&5
6905 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6906 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6907 _lt_result=$?
6908 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6909 lt_cv_apple_cc_single_mod=yes
6910 else
6911 cat conftest.err >&5
6912 fi
6913 rm -rf libconftest.dylib*
6914 rm -f conftest.*
6915 fi
6916fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006918$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006920$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006921if ${lt_cv_ld_exported_symbols_list+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006922 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006923else
6924 lt_cv_ld_exported_symbols_list=no
6925 save_LDFLAGS=$LDFLAGS
6926 echo "_main" > conftest.sym
6927 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Lev Walkinaef10c32014-01-14 01:47:25 -08006928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -07006929/* end confdefs.h. */
6930
6931int
6932main ()
6933{
6934
6935 ;
6936 return 0;
6937}
6938_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08006939if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07006940 lt_cv_ld_exported_symbols_list=yes
6941else
Lev Walkinaef10c32014-01-14 01:47:25 -08006942 lt_cv_ld_exported_symbols_list=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07006943fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006944rm -f core conftest.err conftest.$ac_objext \
6945 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -07006946 LDFLAGS="$save_LDFLAGS"
6947
6948fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006950$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6952$as_echo_n "checking for -force_load linker flag... " >&6; }
6953if ${lt_cv_ld_force_load+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955else
6956 lt_cv_ld_force_load=no
6957 cat > conftest.c << _LT_EOF
6958int forced_loaded() { return 2;}
6959_LT_EOF
6960 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6961 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6962 echo "$AR cru libconftest.a conftest.o" >&5
6963 $AR cru libconftest.a conftest.o 2>&5
6964 echo "$RANLIB libconftest.a" >&5
6965 $RANLIB libconftest.a 2>&5
6966 cat > conftest.c << _LT_EOF
6967int main() { return 0;}
6968_LT_EOF
6969 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6970 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6971 _lt_result=$?
6972 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6973 lt_cv_ld_force_load=yes
6974 else
6975 cat conftest.err >&5
6976 fi
6977 rm -f conftest.err libconftest.a conftest conftest.c
6978 rm -rf conftest.dSYM
6979
6980fi
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6982$as_echo "$lt_cv_ld_force_load" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006983 case $host_os in
6984 rhapsody* | darwin1.[012])
6985 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6986 darwin1.*)
6987 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6988 darwin*) # darwin 5.x on
6989 # if running on 10.5 or later, the deployment target defaults
6990 # to the OS version, if on x86, and 10.4, the deployment
6991 # target defaults to 10.4. Don't you love it?
6992 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6993 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6994 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6995 10.[012]*)
6996 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6997 10.*)
6998 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6999 esac
7000 ;;
7001 esac
7002 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7003 _lt_dar_single_mod='$single_module'
7004 fi
7005 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7006 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7007 else
7008 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7009 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007010 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07007011 _lt_dsymutil='~$DSYMUTIL $lib || :'
7012 else
7013 _lt_dsymutil=
7014 fi
7015 ;;
7016 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00007017
Lev Walkin8e8b5482004-06-17 23:42:48 +00007018ac_ext=c
7019ac_cpp='$CPP $CPPFLAGS'
7020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7022ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkinaef10c32014-01-14 01:47:25 -08007023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007024$as_echo_n "checking how to run the C preprocessor... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007025# On Suns, sometimes $CPP names a directory.
7026if test -n "$CPP" && test -d "$CPP"; then
7027 CPP=
Lev Walkinf15320b2004-06-03 03:38:44 +00007028fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00007029if test -z "$CPP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007030 if ${ac_cv_prog_CPP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007031 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007032else
7033 # Double quotes because CPP needs to be expanded
7034 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7035 do
7036 ac_preproc_ok=false
7037for ac_c_preproc_warn_flag in '' yes
7038do
7039 # Use a header file that comes with gcc, so configuring glibc
7040 # with a fresh cross-compiler works.
7041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7042 # <limits.h> exists even on freestanding compilers.
7043 # On the NeXT, cc -E runs the code through the compiler's parser,
7044 # not just through cpp. "Syntax error" is here to catch this case.
Lev Walkinaef10c32014-01-14 01:47:25 -08007045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007046/* end confdefs.h. */
7047#ifdef __STDC__
7048# include <limits.h>
7049#else
7050# include <assert.h>
7051#endif
7052 Syntax error
7053_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007054if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007055
Lev Walkinaef10c32014-01-14 01:47:25 -08007056else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007057 # Broken: fails on valid input.
7058continue
7059fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007060rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007061
Lev Walkin27fd0b62007-08-27 23:57:45 +00007062 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00007063 # can be detected and how.
Lev Walkinaef10c32014-01-14 01:47:25 -08007064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007065/* end confdefs.h. */
7066#include <ac_nonexistent.h>
7067_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007068if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007069 # Broken: success on invalid input.
7070continue
7071else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007072 # Passes both tests.
7073ac_preproc_ok=:
7074break
7075fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007076rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007077
7078done
7079# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Lev Walkinaef10c32014-01-14 01:47:25 -08007080rm -f conftest.i conftest.err conftest.$ac_ext
7081if $ac_preproc_ok; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007082 break
7083fi
7084
7085 done
7086 ac_cv_prog_CPP=$CPP
7087
7088fi
7089 CPP=$ac_cv_prog_CPP
7090else
7091 ac_cv_prog_CPP=$CPP
7092fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007094$as_echo "$CPP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007095ac_preproc_ok=false
7096for ac_c_preproc_warn_flag in '' yes
7097do
7098 # Use a header file that comes with gcc, so configuring glibc
7099 # with a fresh cross-compiler works.
7100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7101 # <limits.h> exists even on freestanding compilers.
7102 # On the NeXT, cc -E runs the code through the compiler's parser,
7103 # not just through cpp. "Syntax error" is here to catch this case.
Lev Walkinaef10c32014-01-14 01:47:25 -08007104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007105/* end confdefs.h. */
7106#ifdef __STDC__
7107# include <limits.h>
7108#else
7109# include <assert.h>
7110#endif
7111 Syntax error
7112_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007113if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007114
Lev Walkinaef10c32014-01-14 01:47:25 -08007115else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007116 # Broken: fails on valid input.
7117continue
7118fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007119rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007120
Lev Walkin27fd0b62007-08-27 23:57:45 +00007121 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00007122 # can be detected and how.
Lev Walkinaef10c32014-01-14 01:47:25 -08007123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007124/* end confdefs.h. */
7125#include <ac_nonexistent.h>
7126_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007127if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007128 # Broken: success on invalid input.
7129continue
7130else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007131 # Passes both tests.
7132ac_preproc_ok=:
7133break
7134fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007135rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007136
7137done
7138# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Lev Walkinaef10c32014-01-14 01:47:25 -08007139rm -f conftest.i conftest.err conftest.$ac_ext
7140if $ac_preproc_ok; then :
7141
Lev Walkin8e8b5482004-06-17 23:42:48 +00007142else
Lev Walkinaef10c32014-01-14 01:47:25 -08007143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08007145as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7146See \`config.log' for more details" "$LINENO" 5; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007147fi
7148
7149ac_ext=c
7150ac_cpp='$CPP $CPPFLAGS'
7151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7153ac_compiler_gnu=$ac_cv_c_compiler_gnu
7154
7155
Lev Walkinaef10c32014-01-14 01:47:25 -08007156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007157$as_echo_n "checking for ANSI C header files... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007158if ${ac_cv_header_stdc+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007159 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007160else
Lev Walkinaef10c32014-01-14 01:47:25 -08007161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007162/* end confdefs.h. */
7163#include <stdlib.h>
7164#include <stdarg.h>
7165#include <string.h>
7166#include <float.h>
7167
7168int
7169main ()
7170{
7171
7172 ;
7173 return 0;
7174}
7175_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007176if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007177 ac_cv_header_stdc=yes
7178else
Lev Walkinaef10c32014-01-14 01:47:25 -08007179 ac_cv_header_stdc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007180fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007182
7183if test $ac_cv_header_stdc = yes; then
7184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Lev Walkinaef10c32014-01-14 01:47:25 -08007185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007186/* end confdefs.h. */
7187#include <string.h>
7188
7189_ACEOF
7190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Lev Walkinaef10c32014-01-14 01:47:25 -08007191 $EGREP "memchr" >/dev/null 2>&1; then :
7192
Lev Walkin8e8b5482004-06-17 23:42:48 +00007193else
7194 ac_cv_header_stdc=no
7195fi
Lev Walkinb3751942012-09-02 19:36:47 -07007196rm -f conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007197
7198fi
7199
7200if test $ac_cv_header_stdc = yes; then
7201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Lev Walkinaef10c32014-01-14 01:47:25 -08007202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007203/* end confdefs.h. */
7204#include <stdlib.h>
7205
7206_ACEOF
7207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Lev Walkinaef10c32014-01-14 01:47:25 -08007208 $EGREP "free" >/dev/null 2>&1; then :
7209
Lev Walkin8e8b5482004-06-17 23:42:48 +00007210else
7211 ac_cv_header_stdc=no
7212fi
Lev Walkinb3751942012-09-02 19:36:47 -07007213rm -f conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007214
7215fi
7216
7217if test $ac_cv_header_stdc = yes; then
7218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Lev Walkinaef10c32014-01-14 01:47:25 -08007219 if test "$cross_compiling" = yes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007220 :
7221else
Lev Walkinaef10c32014-01-14 01:47:25 -08007222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007223/* end confdefs.h. */
7224#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +00007225#include <stdlib.h>
Lev Walkin8e8b5482004-06-17 23:42:48 +00007226#if ((' ' & 0x0FF) == 0x020)
7227# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7228# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7229#else
7230# define ISLOWER(c) \
7231 (('a' <= (c) && (c) <= 'i') \
7232 || ('j' <= (c) && (c) <= 'r') \
7233 || ('s' <= (c) && (c) <= 'z'))
7234# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7235#endif
7236
7237#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7238int
7239main ()
7240{
7241 int i;
7242 for (i = 0; i < 256; i++)
7243 if (XOR (islower (i), ISLOWER (i))
7244 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +00007245 return 2;
7246 return 0;
Lev Walkin8e8b5482004-06-17 23:42:48 +00007247}
7248_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007249if ac_fn_c_try_run "$LINENO"; then :
7250
Lev Walkin8e8b5482004-06-17 23:42:48 +00007251else
Lev Walkinaef10c32014-01-14 01:47:25 -08007252 ac_cv_header_stdc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007253fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7255 conftest.$ac_objext conftest.beam conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +00007256fi
7257
Lev Walkin8e8b5482004-06-17 23:42:48 +00007258fi
7259fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007261$as_echo "$ac_cv_header_stdc" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007262if test $ac_cv_header_stdc = yes; then
7263
Lev Walkinaef10c32014-01-14 01:47:25 -08007264$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Lev Walkin8e8b5482004-06-17 23:42:48 +00007265
7266fi
7267
7268# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Lev Walkin8e8b5482004-06-17 23:42:48 +00007269for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7270 inttypes.h stdint.h unistd.h
Lev Walkinaef10c32014-01-14 01:47:25 -08007271do :
7272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7273ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7274"
7275if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007276 cat >>confdefs.h <<_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -07007277#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Lev Walkin8e8b5482004-06-17 23:42:48 +00007278_ACEOF
7279
7280fi
7281
7282done
7283
7284
Lev Walkin8e8b5482004-06-17 23:42:48 +00007285for ac_header in dlfcn.h
Lev Walkinaef10c32014-01-14 01:47:25 -08007286do :
7287 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7288"
7289if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007290 cat >>confdefs.h <<_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007291#define HAVE_DLFCN_H 1
Lev Walkin8e8b5482004-06-17 23:42:48 +00007292_ACEOF
7293
7294fi
7295
7296done
7297
Lev Walkin8e8b5482004-06-17 23:42:48 +00007298
Lev Walkin8e8b5482004-06-17 23:42:48 +00007299
Lev Walkinaef10c32014-01-14 01:47:25 -08007300
7301
Lev Walkin4da95cf2010-10-16 02:46:32 -07007302# Set options
Lev Walkin8e8b5482004-06-17 23:42:48 +00007303
Lev Walkin27fd0b62007-08-27 23:57:45 +00007304
Lev Walkin8e8b5482004-06-17 23:42:48 +00007305
Lev Walkin4da95cf2010-10-16 02:46:32 -07007306 enable_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007307
Lev Walkin8e8b5482004-06-17 23:42:48 +00007308
Lev Walkin4da95cf2010-10-16 02:46:32 -07007309 enable_win32_dll=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007310
Lev Walkin8e8b5482004-06-17 23:42:48 +00007311
Lev Walkin4da95cf2010-10-16 02:46:32 -07007312 # Check whether --enable-shared was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08007313if test "${enable_shared+set}" = set; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07007314 enableval=$enable_shared; p=${PACKAGE-default}
7315 case $enableval in
7316 yes) enable_shared=yes ;;
7317 no) enable_shared=no ;;
7318 *)
7319 enable_shared=no
7320 # Look at the argument we got. We use all the common list separators.
7321 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7322 for pkg in $enableval; do
7323 IFS="$lt_save_ifs"
7324 if test "X$pkg" = "X$p"; then
7325 enable_shared=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00007326 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07007327 done
7328 IFS="$lt_save_ifs"
7329 ;;
7330 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007331else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007332 enable_shared=yes
7333fi
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343 # Check whether --enable-static was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08007344if test "${enable_static+set}" = set; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07007345 enableval=$enable_static; p=${PACKAGE-default}
7346 case $enableval in
7347 yes) enable_static=yes ;;
7348 no) enable_static=no ;;
7349 *)
7350 enable_static=no
7351 # Look at the argument we got. We use all the common list separators.
7352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7353 for pkg in $enableval; do
7354 IFS="$lt_save_ifs"
7355 if test "X$pkg" = "X$p"; then
7356 enable_static=yes
7357 fi
7358 done
7359 IFS="$lt_save_ifs"
7360 ;;
7361 esac
7362else
7363 enable_static=yes
7364fi
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375# Check whether --with-pic was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08007376if test "${with_pic+set}" = set; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07007377 withval=$with_pic; pic_mode="$withval"
7378else
7379 pic_mode=default
7380fi
7381
7382
7383test -z "$pic_mode" && pic_mode=default
7384
7385
7386
7387
7388
7389
7390
7391 # Check whether --enable-fast-install was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08007392if test "${enable_fast_install+set}" = set; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07007393 enableval=$enable_fast_install; p=${PACKAGE-default}
7394 case $enableval in
7395 yes) enable_fast_install=yes ;;
7396 no) enable_fast_install=no ;;
7397 *)
7398 enable_fast_install=no
7399 # Look at the argument we got. We use all the common list separators.
7400 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7401 for pkg in $enableval; do
7402 IFS="$lt_save_ifs"
7403 if test "X$pkg" = "X$p"; then
7404 enable_fast_install=yes
7405 fi
7406 done
7407 IFS="$lt_save_ifs"
7408 ;;
7409 esac
7410else
7411 enable_fast_install=yes
7412fi
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424# This can be used to rebuild libtool when needed
7425LIBTOOL_DEPS="$ltmain"
7426
7427# Always use our own libtool.
7428LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
Lev Walkinaef10c32014-01-14 01:47:25 -08007454
Lev Walkin4da95cf2010-10-16 02:46:32 -07007455test -z "$LN_S" && LN_S="ln -s"
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470if test -n "${ZSH_VERSION+set}" ; then
7471 setopt NO_GLOB_SUBST
Lev Walkin8e8b5482004-06-17 23:42:48 +00007472fi
7473
Lev Walkinaef10c32014-01-14 01:47:25 -08007474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007475$as_echo_n "checking for objdir... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007476if ${lt_cv_objdir+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007477 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007478else
7479 rm -f .libs 2>/dev/null
7480mkdir .libs 2>/dev/null
7481if test -d .libs; then
7482 lt_cv_objdir=.libs
7483else
7484 # MS-DOS does not allow filenames that begin with a dot.
7485 lt_cv_objdir=_libs
7486fi
7487rmdir .libs 2>/dev/null
7488fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007490$as_echo "$lt_cv_objdir" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007491objdir=$lt_cv_objdir
7492
7493
7494
7495
7496
Lev Walkin4da95cf2010-10-16 02:46:32 -07007497cat >>confdefs.h <<_ACEOF
7498#define LT_OBJDIR "$lt_cv_objdir/"
7499_ACEOF
7500
7501
7502
7503
Lev Walkin8e8b5482004-06-17 23:42:48 +00007504case $host_os in
7505aix3*)
7506 # AIX sometimes has problems with the GCC collect2 program. For some
7507 # reason, if we set the COLLECT_NAMES environment variable, the problems
7508 # vanish in a puff of smoke.
7509 if test "X${COLLECT_NAMES+set}" != Xset; then
7510 COLLECT_NAMES=
7511 export COLLECT_NAMES
7512 fi
7513 ;;
7514esac
7515
Lev Walkin8e8b5482004-06-17 23:42:48 +00007516# Global variables:
Lev Walkin4da95cf2010-10-16 02:46:32 -07007517ofile=libtool
Lev Walkin8e8b5482004-06-17 23:42:48 +00007518can_build_shared=yes
7519
Lev Walkinfbf1d282007-12-03 14:58:39 +00007520# All known linkers require a `.a' archive for static linking (except MSVC,
Lev Walkin8e8b5482004-06-17 23:42:48 +00007521# which needs '.lib').
7522libext=a
Lev Walkin4da95cf2010-10-16 02:46:32 -07007523
Lev Walkin8e8b5482004-06-17 23:42:48 +00007524with_gnu_ld="$lt_cv_prog_gnu_ld"
7525
Lev Walkin8e8b5482004-06-17 23:42:48 +00007526old_CC="$CC"
7527old_CFLAGS="$CFLAGS"
7528
7529# Set sane defaults for various variables
Lev Walkin8e8b5482004-06-17 23:42:48 +00007530test -z "$CC" && CC=cc
7531test -z "$LTCC" && LTCC=$CC
Lev Walkinfbf1d282007-12-03 14:58:39 +00007532test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Lev Walkin8e8b5482004-06-17 23:42:48 +00007533test -z "$LD" && LD=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00007534test -z "$ac_objext" && ac_objext=o
7535
Lev Walkinfbf1d282007-12-03 14:58:39 +00007536for cc_temp in $compiler""; do
7537 case $cc_temp in
7538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7540 \-*) ;;
7541 *) break;;
7542 esac
7543done
Lev Walkinaef10c32014-01-14 01:47:25 -08007544cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Lev Walkinfbf1d282007-12-03 14:58:39 +00007545
7546
Lev Walkin8e8b5482004-06-17 23:42:48 +00007547# Only perform the check for file, if the check method requires it
Lev Walkin4da95cf2010-10-16 02:46:32 -07007548test -z "$MAGIC_CMD" && MAGIC_CMD=file
Lev Walkin8e8b5482004-06-17 23:42:48 +00007549case $deplibs_check_method in
7550file_magic*)
7551 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007553$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007554if ${lt_cv_path_MAGIC_CMD+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007555 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007556else
7557 case $MAGIC_CMD in
7558[\\/*] | ?:[\\/]*)
7559 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7560 ;;
7561*)
7562 lt_save_MAGIC_CMD="$MAGIC_CMD"
7563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7564 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7565 for ac_dir in $ac_dummy; do
7566 IFS="$lt_save_ifs"
7567 test -z "$ac_dir" && ac_dir=.
7568 if test -f $ac_dir/${ac_tool_prefix}file; then
7569 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7570 if test -n "$file_magic_test_file"; then
7571 case $deplibs_check_method in
7572 "file_magic "*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007573 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Lev Walkin8e8b5482004-06-17 23:42:48 +00007574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7575 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7576 $EGREP "$file_magic_regex" > /dev/null; then
7577 :
7578 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007579 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007580
7581*** Warning: the command libtool uses to detect shared libraries,
7582*** $file_magic_cmd, produces output that libtool cannot recognize.
7583*** The result is that libtool may fail to recognize shared libraries
7584*** as such. This will affect the creation of libtool libraries that
7585*** depend on shared libraries, but programs linked with such libtool
7586*** libraries will work regardless of this problem. Nevertheless, you
7587*** may want to report the problem to your system manager and/or to
7588*** bug-libtool@gnu.org
7589
Lev Walkin4da95cf2010-10-16 02:46:32 -07007590_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007591 fi ;;
7592 esac
7593 fi
7594 break
7595 fi
7596 done
7597 IFS="$lt_save_ifs"
7598 MAGIC_CMD="$lt_save_MAGIC_CMD"
7599 ;;
7600esac
7601fi
7602
7603MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7604if test -n "$MAGIC_CMD"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007606$as_echo "$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007607else
Lev Walkinaef10c32014-01-14 01:47:25 -08007608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007609$as_echo "no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007610fi
7611
Lev Walkin4da95cf2010-10-16 02:46:32 -07007612
7613
7614
7615
Lev Walkin8e8b5482004-06-17 23:42:48 +00007616if test -z "$lt_cv_path_MAGIC_CMD"; then
7617 if test -n "$ac_tool_prefix"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007619$as_echo_n "checking for file... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007620if ${lt_cv_path_MAGIC_CMD+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007621 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007622else
7623 case $MAGIC_CMD in
7624[\\/*] | ?:[\\/]*)
7625 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7626 ;;
7627*)
7628 lt_save_MAGIC_CMD="$MAGIC_CMD"
7629 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7630 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7631 for ac_dir in $ac_dummy; do
7632 IFS="$lt_save_ifs"
7633 test -z "$ac_dir" && ac_dir=.
7634 if test -f $ac_dir/file; then
7635 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7636 if test -n "$file_magic_test_file"; then
7637 case $deplibs_check_method in
7638 "file_magic "*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007639 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Lev Walkin8e8b5482004-06-17 23:42:48 +00007640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7641 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7642 $EGREP "$file_magic_regex" > /dev/null; then
7643 :
7644 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007645 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007646
7647*** Warning: the command libtool uses to detect shared libraries,
7648*** $file_magic_cmd, produces output that libtool cannot recognize.
7649*** The result is that libtool may fail to recognize shared libraries
7650*** as such. This will affect the creation of libtool libraries that
7651*** depend on shared libraries, but programs linked with such libtool
7652*** libraries will work regardless of this problem. Nevertheless, you
7653*** may want to report the problem to your system manager and/or to
7654*** bug-libtool@gnu.org
7655
Lev Walkin4da95cf2010-10-16 02:46:32 -07007656_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007657 fi ;;
7658 esac
7659 fi
7660 break
7661 fi
7662 done
7663 IFS="$lt_save_ifs"
7664 MAGIC_CMD="$lt_save_MAGIC_CMD"
7665 ;;
7666esac
7667fi
7668
7669MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7670if test -n "$MAGIC_CMD"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007672$as_echo "$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007673else
Lev Walkinaef10c32014-01-14 01:47:25 -08007674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007675$as_echo "no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007676fi
7677
Lev Walkin4da95cf2010-10-16 02:46:32 -07007678
Lev Walkin8e8b5482004-06-17 23:42:48 +00007679 else
7680 MAGIC_CMD=:
7681 fi
7682fi
7683
7684 fi
7685 ;;
7686esac
7687
Lev Walkin8e8b5482004-06-17 23:42:48 +00007688# Use C for the default configuration in the libtool script
Lev Walkin4da95cf2010-10-16 02:46:32 -07007689
Lev Walkin8e8b5482004-06-17 23:42:48 +00007690lt_save_CC="$CC"
7691ac_ext=c
7692ac_cpp='$CPP $CPPFLAGS'
7693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7695ac_compiler_gnu=$ac_cv_c_compiler_gnu
7696
7697
7698# Source file extension for C test sources.
7699ac_ext=c
7700
7701# Object file extension for compiled C test sources.
7702objext=o
7703objext=$objext
7704
7705# Code to be used in simple compile tests
Lev Walkin4da95cf2010-10-16 02:46:32 -07007706lt_simple_compile_test_code="int some_variable = 0;"
Lev Walkin8e8b5482004-06-17 23:42:48 +00007707
7708# Code to be used in simple link tests
Lev Walkin4da95cf2010-10-16 02:46:32 -07007709lt_simple_link_test_code='int main(){return(0);}'
7710
7711
7712
7713
7714
Lev Walkin8e8b5482004-06-17 23:42:48 +00007715
7716
7717# If no C compiler was specified, use CC.
7718LTCC=${LTCC-"$CC"}
7719
Lev Walkinfbf1d282007-12-03 14:58:39 +00007720# If no C compiler flags were specified, use CFLAGS.
7721LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7722
Lev Walkin8e8b5482004-06-17 23:42:48 +00007723# Allow CC to be a program name with arguments.
7724compiler=$CC
7725
Lev Walkin4da95cf2010-10-16 02:46:32 -07007726# Save the default compiler, since it gets overwritten when the other
7727# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7728compiler_DEFAULT=$CC
Lev Walkin8e8b5482004-06-17 23:42:48 +00007729
Lev Walkinfbf1d282007-12-03 14:58:39 +00007730# save warnings/boilerplate of simple test code
7731ac_outfile=conftest.$ac_objext
Lev Walkin4da95cf2010-10-16 02:46:32 -07007732echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007733eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7734_lt_compiler_boilerplate=`cat conftest.err`
Lev Walkinaef10c32014-01-14 01:47:25 -08007735$RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007736
Lev Walkinfbf1d282007-12-03 14:58:39 +00007737ac_outfile=conftest.$ac_objext
Lev Walkin4da95cf2010-10-16 02:46:32 -07007738echo "$lt_simple_link_test_code" >conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007739eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7740_lt_linker_boilerplate=`cat conftest.err`
Lev Walkin4da95cf2010-10-16 02:46:32 -07007741$RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007742
7743
Lev Walkine7c4b962010-11-09 03:10:36 -08007744## CAVEAT EMPTOR:
7745## There is no encapsulation within the following macros, do not change
7746## the running order or otherwise move them around unless you know exactly
7747## what you are doing...
Lev Walkin4da95cf2010-10-16 02:46:32 -07007748if test -n "$compiler"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007749
7750lt_prog_compiler_no_builtin_flag=
7751
7752if test "$GCC" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007753 case $cc_basename in
7754 nvcc*)
7755 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7756 *)
7757 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7758 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007759
Lev Walkinaef10c32014-01-14 01:47:25 -08007760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007761$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007762if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007763 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007764else
7765 lt_cv_prog_compiler_rtti_exceptions=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07007766 ac_outfile=conftest.$ac_objext
7767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007768 lt_compiler_flag="-fno-rtti -fno-exceptions"
7769 # Insert the option either (1) after the last *FLAGS variable, or
7770 # (2) before a word containing "conftest.", or (3) at the end.
7771 # Note that $ac_compile itself does not contain backslashes and begins
7772 # with a dollar sign (not a hyphen), so the echo should work correctly.
7773 # The option is referenced via a variable to avoid confusing sed.
7774 lt_compile=`echo "$ac_compile" | $SED \
Lev Walkinfbf1d282007-12-03 14:58:39 +00007775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Lev Walkin8e8b5482004-06-17 23:42:48 +00007776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7777 -e 's:$: $lt_compiler_flag:'`
Lev Walkinaef10c32014-01-14 01:47:25 -08007778 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007779 (eval "$lt_compile" 2>conftest.err)
7780 ac_status=$?
7781 cat conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08007782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007783 if (exit $ac_status) && test -s "$ac_outfile"; then
7784 # The compiler can only warn and ignore the option if not recognized
Lev Walkinfbf1d282007-12-03 14:58:39 +00007785 # So say no if there are warnings other than the usual output.
Lev Walkinaef10c32014-01-14 01:47:25 -08007786 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00007787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7788 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007789 lt_cv_prog_compiler_rtti_exceptions=yes
7790 fi
7791 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007792 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007793
7794fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007796$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007797
7798if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7799 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7800else
7801 :
7802fi
7803
7804fi
7805
Lev Walkin4da95cf2010-10-16 02:46:32 -07007806
7807
7808
7809
7810
7811 lt_prog_compiler_wl=
Lev Walkin8e8b5482004-06-17 23:42:48 +00007812lt_prog_compiler_pic=
7813lt_prog_compiler_static=
7814
Lev Walkin8e8b5482004-06-17 23:42:48 +00007815
7816 if test "$GCC" = yes; then
7817 lt_prog_compiler_wl='-Wl,'
7818 lt_prog_compiler_static='-static'
7819
7820 case $host_os in
7821 aix*)
7822 # All AIX code is PIC.
7823 if test "$host_cpu" = ia64; then
7824 # AIX 5 now supports IA64 processor
7825 lt_prog_compiler_static='-Bstatic'
7826 fi
7827 ;;
7828
7829 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007830 case $host_cpu in
7831 powerpc)
7832 # see comment about AmigaOS4 .so support
7833 lt_prog_compiler_pic='-fPIC'
7834 ;;
7835 m68k)
7836 # FIXME: we need at least 68020 code to build shared libraries, but
7837 # adding the `-m68020' flag to GCC prevents building anything better,
7838 # like `-m68040'.
7839 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7840 ;;
7841 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007842 ;;
7843
Lev Walkin4da95cf2010-10-16 02:46:32 -07007844 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007845 # PIC is the default for these OSes.
7846 ;;
7847
Lev Walkinaef10c32014-01-14 01:47:25 -08007848 mingw* | cygwin* | pw32* | os2* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007849 # This hack is so that the source file can tell whether it is being
7850 # built for inclusion in a dll (and should export symbols for example).
Lev Walkin4da95cf2010-10-16 02:46:32 -07007851 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7852 # (--disable-auto-import) libraries
Lev Walkin8e8b5482004-06-17 23:42:48 +00007853 lt_prog_compiler_pic='-DDLL_EXPORT'
7854 ;;
7855
7856 darwin* | rhapsody*)
7857 # PIC is the default on this platform
7858 # Common symbols not allowed in MH_DYLIB files
7859 lt_prog_compiler_pic='-fno-common'
7860 ;;
7861
Lev Walkinaef10c32014-01-14 01:47:25 -08007862 haiku*)
7863 # PIC is the default for Haiku.
7864 # The "-static" flag exists, but is broken.
7865 lt_prog_compiler_static=
7866 ;;
7867
Lev Walkin4da95cf2010-10-16 02:46:32 -07007868 hpux*)
Lev Walkinaef10c32014-01-14 01:47:25 -08007869 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7870 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7871 # sets the default TLS model and affects inlining.
Lev Walkin4da95cf2010-10-16 02:46:32 -07007872 case $host_cpu in
Lev Walkinaef10c32014-01-14 01:47:25 -08007873 hppa*64*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007874 # +Z the default
7875 ;;
7876 *)
7877 lt_prog_compiler_pic='-fPIC'
7878 ;;
7879 esac
7880 ;;
7881
7882 interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007883 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7884 # Instead, we relocate shared libraries at runtime.
7885 ;;
7886
Lev Walkin8e8b5482004-06-17 23:42:48 +00007887 msdosdjgpp*)
7888 # Just because we use GCC doesn't mean we suddenly get shared libraries
7889 # on systems that don't support them.
7890 lt_prog_compiler_can_build_shared=no
7891 enable_shared=no
7892 ;;
7893
Lev Walkin4da95cf2010-10-16 02:46:32 -07007894 *nto* | *qnx*)
7895 # QNX uses GNU C++, but need to define -shared option too, otherwise
7896 # it will coredump.
7897 lt_prog_compiler_pic='-fPIC -shared'
7898 ;;
7899
Lev Walkin8e8b5482004-06-17 23:42:48 +00007900 sysv4*MP*)
7901 if test -d /usr/nec; then
7902 lt_prog_compiler_pic=-Kconform_pic
7903 fi
7904 ;;
7905
Lev Walkin8e8b5482004-06-17 23:42:48 +00007906 *)
7907 lt_prog_compiler_pic='-fPIC'
7908 ;;
7909 esac
Lev Walkinaef10c32014-01-14 01:47:25 -08007910
7911 case $cc_basename in
7912 nvcc*) # Cuda Compiler Driver 2.2
7913 lt_prog_compiler_wl='-Xlinker '
7914 lt_prog_compiler_pic='-Xcompiler -fPIC'
7915 ;;
7916 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007917 else
7918 # PORTME Check for flag to pass linker flags through the system compiler.
7919 case $host_os in
7920 aix*)
7921 lt_prog_compiler_wl='-Wl,'
7922 if test "$host_cpu" = ia64; then
7923 # AIX 5 now supports IA64 processor
7924 lt_prog_compiler_static='-Bstatic'
7925 else
7926 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7927 fi
7928 ;;
7929
Lev Walkinaef10c32014-01-14 01:47:25 -08007930 mingw* | cygwin* | pw32* | os2* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007931 # This hack is so that the source file can tell whether it is being
7932 # built for inclusion in a dll (and should export symbols for example).
7933 lt_prog_compiler_pic='-DDLL_EXPORT'
7934 ;;
7935
7936 hpux9* | hpux10* | hpux11*)
7937 lt_prog_compiler_wl='-Wl,'
7938 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7939 # not for PA HP-UX.
Lev Walkinfbf1d282007-12-03 14:58:39 +00007940 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00007941 hppa*64*|ia64*)
7942 # +Z the default
7943 ;;
7944 *)
7945 lt_prog_compiler_pic='+Z'
7946 ;;
7947 esac
7948 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7949 lt_prog_compiler_static='${wl}-a ${wl}archive'
7950 ;;
7951
7952 irix5* | irix6* | nonstopux*)
7953 lt_prog_compiler_wl='-Wl,'
7954 # PIC (with -KPIC) is the default.
7955 lt_prog_compiler_static='-non_shared'
7956 ;;
7957
Lev Walkinaef10c32014-01-14 01:47:25 -08007958 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007959 case $cc_basename in
Lev Walkinaef10c32014-01-14 01:47:25 -08007960 # old Intel for x86_64 which still supported -KPIC.
7961 ecc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007962 lt_prog_compiler_wl='-Wl,'
7963 lt_prog_compiler_pic='-KPIC'
7964 lt_prog_compiler_static='-static'
7965 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08007966 # icc used to be incompatible with GCC.
7967 # ICC 10 doesn't accept -KPIC any more.
7968 icc* | ifort*)
7969 lt_prog_compiler_wl='-Wl,'
7970 lt_prog_compiler_pic='-fPIC'
7971 lt_prog_compiler_static='-static'
7972 ;;
7973 # Lahey Fortran 8.1.
7974 lf95*)
7975 lt_prog_compiler_wl='-Wl,'
7976 lt_prog_compiler_pic='--shared'
7977 lt_prog_compiler_static='--static'
7978 ;;
7979 nagfor*)
7980 # NAG Fortran compiler
7981 lt_prog_compiler_wl='-Wl,-Wl,,'
7982 lt_prog_compiler_pic='-PIC'
7983 lt_prog_compiler_static='-Bstatic'
7984 ;;
7985 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007986 # Portland Group compilers (*not* the Pentium gcc compiler,
7987 # which looks to be a dead project)
7988 lt_prog_compiler_wl='-Wl,'
7989 lt_prog_compiler_pic='-fpic'
7990 lt_prog_compiler_static='-Bstatic'
7991 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00007992 ccc*)
7993 lt_prog_compiler_wl='-Wl,'
7994 # All Alpha code is PIC.
7995 lt_prog_compiler_static='-non_shared'
7996 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08007997 xl* | bgxl* | bgf* | mpixl*)
7998 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Lev Walkin4da95cf2010-10-16 02:46:32 -07007999 lt_prog_compiler_wl='-Wl,'
8000 lt_prog_compiler_pic='-qpic'
8001 lt_prog_compiler_static='-qstaticlink'
8002 ;;
8003 *)
8004 case `$CC -V 2>&1 | sed 5q` in
Lev Walkinaef10c32014-01-14 01:47:25 -08008005 *Sun\ F* | *Sun*Fortran*)
8006 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8007 lt_prog_compiler_pic='-KPIC'
8008 lt_prog_compiler_static='-Bstatic'
8009 lt_prog_compiler_wl=''
8010 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07008011 *Sun\ C*)
8012 # Sun C 5.9
8013 lt_prog_compiler_pic='-KPIC'
8014 lt_prog_compiler_static='-Bstatic'
8015 lt_prog_compiler_wl='-Wl,'
8016 ;;
8017 esac
8018 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008019 esac
8020 ;;
8021
Lev Walkin4da95cf2010-10-16 02:46:32 -07008022 newsos6)
8023 lt_prog_compiler_pic='-KPIC'
8024 lt_prog_compiler_static='-Bstatic'
8025 ;;
8026
8027 *nto* | *qnx*)
8028 # QNX uses GNU C++, but need to define -shared option too, otherwise
8029 # it will coredump.
8030 lt_prog_compiler_pic='-fPIC -shared'
8031 ;;
8032
Lev Walkin8e8b5482004-06-17 23:42:48 +00008033 osf3* | osf4* | osf5*)
8034 lt_prog_compiler_wl='-Wl,'
8035 # All OSF/1 code is PIC.
8036 lt_prog_compiler_static='-non_shared'
8037 ;;
8038
Lev Walkin4da95cf2010-10-16 02:46:32 -07008039 rdos*)
8040 lt_prog_compiler_static='-non_shared'
8041 ;;
8042
Lev Walkin8e8b5482004-06-17 23:42:48 +00008043 solaris*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008044 lt_prog_compiler_pic='-KPIC'
8045 lt_prog_compiler_static='-Bstatic'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008046 case $cc_basename in
Lev Walkinaef10c32014-01-14 01:47:25 -08008047 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008048 lt_prog_compiler_wl='-Qoption ld ';;
8049 *)
8050 lt_prog_compiler_wl='-Wl,';;
8051 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008052 ;;
8053
8054 sunos4*)
8055 lt_prog_compiler_wl='-Qoption ld '
8056 lt_prog_compiler_pic='-PIC'
8057 lt_prog_compiler_static='-Bstatic'
8058 ;;
8059
Lev Walkinfbf1d282007-12-03 14:58:39 +00008060 sysv4 | sysv4.2uw2* | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008061 lt_prog_compiler_wl='-Wl,'
8062 lt_prog_compiler_pic='-KPIC'
8063 lt_prog_compiler_static='-Bstatic'
8064 ;;
8065
8066 sysv4*MP*)
8067 if test -d /usr/nec ;then
8068 lt_prog_compiler_pic='-Kconform_pic'
8069 lt_prog_compiler_static='-Bstatic'
8070 fi
8071 ;;
8072
Lev Walkinfbf1d282007-12-03 14:58:39 +00008073 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8074 lt_prog_compiler_wl='-Wl,'
8075 lt_prog_compiler_pic='-KPIC'
8076 lt_prog_compiler_static='-Bstatic'
8077 ;;
8078
8079 unicos*)
8080 lt_prog_compiler_wl='-Wl,'
8081 lt_prog_compiler_can_build_shared=no
8082 ;;
8083
Lev Walkin8e8b5482004-06-17 23:42:48 +00008084 uts4*)
8085 lt_prog_compiler_pic='-pic'
8086 lt_prog_compiler_static='-Bstatic'
8087 ;;
8088
8089 *)
8090 lt_prog_compiler_can_build_shared=no
8091 ;;
8092 esac
8093 fi
8094
Lev Walkinfbf1d282007-12-03 14:58:39 +00008095case $host_os in
Lev Walkin8e8b5482004-06-17 23:42:48 +00008096 # For platforms which do not support PIC, -DPIC is meaningless:
8097 *djgpp*)
8098 lt_prog_compiler_pic=
8099 ;;
8100 *)
8101 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8102 ;;
8103esac
8104
Lev Walkinaef10c32014-01-14 01:47:25 -08008105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8106$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8107if ${lt_cv_prog_compiler_pic+:} false; then :
8108 $as_echo_n "(cached) " >&6
8109else
8110 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8111fi
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8113$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8114lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Lev Walkin4da95cf2010-10-16 02:46:32 -07008115
8116#
8117# Check to make sure the PIC flag actually works.
8118#
8119if test -n "$lt_prog_compiler_pic"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008121$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08008122if ${lt_cv_prog_compiler_pic_works+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07008123 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07008124else
8125 lt_cv_prog_compiler_pic_works=no
8126 ac_outfile=conftest.$ac_objext
8127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8128 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8129 # Insert the option either (1) after the last *FLAGS variable, or
8130 # (2) before a word containing "conftest.", or (3) at the end.
8131 # Note that $ac_compile itself does not contain backslashes and begins
8132 # with a dollar sign (not a hyphen), so the echo should work correctly.
8133 # The option is referenced via a variable to avoid confusing sed.
8134 lt_compile=`echo "$ac_compile" | $SED \
8135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8137 -e 's:$: $lt_compiler_flag:'`
Lev Walkinaef10c32014-01-14 01:47:25 -08008138 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008139 (eval "$lt_compile" 2>conftest.err)
8140 ac_status=$?
8141 cat conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07008143 if (exit $ac_status) && test -s "$ac_outfile"; then
8144 # The compiler can only warn and ignore the option if not recognized
8145 # So say no if there are warnings other than the usual output.
Lev Walkinaef10c32014-01-14 01:47:25 -08008146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Lev Walkin4da95cf2010-10-16 02:46:32 -07008147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8148 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8149 lt_cv_prog_compiler_pic_works=yes
8150 fi
8151 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008152 $RM conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07008153
8154fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008156$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07008157
8158if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8159 case $lt_prog_compiler_pic in
8160 "" | " "*) ;;
8161 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8162 esac
8163else
8164 lt_prog_compiler_pic=
8165 lt_prog_compiler_can_build_shared=no
8166fi
8167
8168fi
8169
8170
8171
8172
8173
8174
Lev Walkinaef10c32014-01-14 01:47:25 -08008175
8176
8177
8178
8179
Lev Walkinfbf1d282007-12-03 14:58:39 +00008180#
8181# Check to make sure the static flag actually works.
8182#
8183wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Lev Walkinaef10c32014-01-14 01:47:25 -08008184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008185$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08008186if ${lt_cv_prog_compiler_static_works+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07008187 $as_echo_n "(cached) " >&6
Lev Walkinfbf1d282007-12-03 14:58:39 +00008188else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008189 lt_cv_prog_compiler_static_works=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00008190 save_LDFLAGS="$LDFLAGS"
8191 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Lev Walkin4da95cf2010-10-16 02:46:32 -07008192 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00008193 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8194 # The linker can only warn and ignore the option if not recognized
8195 # So say no if there are warnings
8196 if test -s conftest.err; then
8197 # Append any errors to the config.log.
8198 cat conftest.err 1>&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008199 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00008200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8201 if diff conftest.exp conftest.er2 >/dev/null; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008202 lt_cv_prog_compiler_static_works=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008203 fi
8204 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008205 lt_cv_prog_compiler_static_works=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008206 fi
8207 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008208 $RM -r conftest*
Lev Walkinfbf1d282007-12-03 14:58:39 +00008209 LDFLAGS="$save_LDFLAGS"
8210
8211fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008213$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Lev Walkinfbf1d282007-12-03 14:58:39 +00008214
Lev Walkin4da95cf2010-10-16 02:46:32 -07008215if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008216 :
8217else
8218 lt_prog_compiler_static=
8219fi
8220
8221
Lev Walkin4da95cf2010-10-16 02:46:32 -07008222
8223
8224
8225
8226
Lev Walkinaef10c32014-01-14 01:47:25 -08008227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008228$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08008229if ${lt_cv_prog_compiler_c_o+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07008230 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00008231else
8232 lt_cv_prog_compiler_c_o=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008233 $RM -r conftest 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +00008234 mkdir conftest
8235 cd conftest
8236 mkdir out
Lev Walkin4da95cf2010-10-16 02:46:32 -07008237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008238
8239 lt_compiler_flag="-o out/conftest2.$ac_objext"
8240 # Insert the option either (1) after the last *FLAGS variable, or
8241 # (2) before a word containing "conftest.", or (3) at the end.
8242 # Note that $ac_compile itself does not contain backslashes and begins
8243 # with a dollar sign (not a hyphen), so the echo should work correctly.
8244 lt_compile=`echo "$ac_compile" | $SED \
Lev Walkinfbf1d282007-12-03 14:58:39 +00008245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Lev Walkin8e8b5482004-06-17 23:42:48 +00008246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8247 -e 's:$: $lt_compiler_flag:'`
Lev Walkinaef10c32014-01-14 01:47:25 -08008248 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008249 (eval "$lt_compile" 2>out/conftest.err)
8250 ac_status=$?
8251 cat out/conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008253 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8254 then
8255 # The compiler can only warn and ignore the option if not recognized
8256 # So say no if there are warnings
Lev Walkinaef10c32014-01-14 01:47:25 -08008257 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00008258 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8259 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008260 lt_cv_prog_compiler_c_o=yes
8261 fi
8262 fi
Lev Walkinfbf1d282007-12-03 14:58:39 +00008263 chmod u+w . 2>&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008264 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008265 # SGI C++ compiler will create directory out/ii_files/ for
8266 # template instantiation
Lev Walkin4da95cf2010-10-16 02:46:32 -07008267 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8268 $RM out/* && rmdir out
Lev Walkin8e8b5482004-06-17 23:42:48 +00008269 cd ..
Lev Walkin4da95cf2010-10-16 02:46:32 -07008270 $RM -r conftest
Lev Walkinaef10c32014-01-14 01:47:25 -08008271 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008272
8273fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008275$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008276
8277
Lev Walkin4da95cf2010-10-16 02:46:32 -07008278
8279
8280
8281
Lev Walkinaef10c32014-01-14 01:47:25 -08008282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008283$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08008284if ${lt_cv_prog_compiler_c_o+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07008285 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07008286else
8287 lt_cv_prog_compiler_c_o=no
8288 $RM -r conftest 2>/dev/null
8289 mkdir conftest
8290 cd conftest
8291 mkdir out
8292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8293
8294 lt_compiler_flag="-o out/conftest2.$ac_objext"
8295 # Insert the option either (1) after the last *FLAGS variable, or
8296 # (2) before a word containing "conftest.", or (3) at the end.
8297 # Note that $ac_compile itself does not contain backslashes and begins
8298 # with a dollar sign (not a hyphen), so the echo should work correctly.
8299 lt_compile=`echo "$ac_compile" | $SED \
8300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8302 -e 's:$: $lt_compiler_flag:'`
Lev Walkinaef10c32014-01-14 01:47:25 -08008303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008304 (eval "$lt_compile" 2>out/conftest.err)
8305 ac_status=$?
8306 cat out/conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07008308 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8309 then
8310 # The compiler can only warn and ignore the option if not recognized
8311 # So say no if there are warnings
Lev Walkinaef10c32014-01-14 01:47:25 -08008312 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Lev Walkin4da95cf2010-10-16 02:46:32 -07008313 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8314 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8315 lt_cv_prog_compiler_c_o=yes
8316 fi
8317 fi
8318 chmod u+w . 2>&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008319 $RM conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07008320 # SGI C++ compiler will create directory out/ii_files/ for
8321 # template instantiation
8322 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8323 $RM out/* && rmdir out
8324 cd ..
8325 $RM -r conftest
Lev Walkinaef10c32014-01-14 01:47:25 -08008326 $RM conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07008327
8328fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008330$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07008331
8332
8333
8334
Lev Walkin8e8b5482004-06-17 23:42:48 +00008335hard_links="nottested"
8336if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8337 # do not overwrite the value of need_locks provided by the user
Lev Walkinaef10c32014-01-14 01:47:25 -08008338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008339$as_echo_n "checking if we can lock with hard links... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008340 hard_links=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08008341 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8343 touch conftest.a
8344 ln conftest.a conftest.b 2>&5 || hard_links=no
8345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Lev Walkinaef10c32014-01-14 01:47:25 -08008346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008347$as_echo "$hard_links" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008348 if test "$hard_links" = no; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008350$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00008351 need_locks=warn
8352 fi
8353else
8354 need_locks=no
8355fi
8356
Lev Walkin4da95cf2010-10-16 02:46:32 -07008357
8358
8359
8360
8361
Lev Walkinaef10c32014-01-14 01:47:25 -08008362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008363$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008364
8365 runpath_var=
8366 allow_undefined_flag=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008367 always_export_symbols=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008368 archive_cmds=
8369 archive_expsym_cmds=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008370 compiler_needs_object=no
8371 enable_shared_with_static_runtimes=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008372 export_dynamic_flag_spec=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008373 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8374 hardcode_automatic=no
8375 hardcode_direct=no
8376 hardcode_direct_absolute=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008377 hardcode_libdir_flag_spec=
8378 hardcode_libdir_flag_spec_ld=
8379 hardcode_libdir_separator=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008380 hardcode_minus_L=no
8381 hardcode_shlibpath_var=unsupported
Lev Walkin4da95cf2010-10-16 02:46:32 -07008382 inherit_rpath=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008383 link_all_deplibs=unknown
Lev Walkin8e8b5482004-06-17 23:42:48 +00008384 module_cmds=
8385 module_expsym_cmds=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008386 old_archive_from_new_cmds=
8387 old_archive_from_expsyms_cmds=
8388 thread_safe_flag_spec=
8389 whole_archive_flag_spec=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008390 # include_expsyms should be a list of space-separated symbols to be *always*
8391 # included in the symbol list
8392 include_expsyms=
8393 # exclude_expsyms can be an extended regexp of symbols to exclude
8394 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8395 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8396 # as well as any symbol that contains `d'.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008397 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008398 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8399 # platforms (ab)use it in PIC code, but their linkers get confused if
8400 # the symbol is explicitly referenced. Since portable code cannot
8401 # rely on this symbol name, it's probably fine to never include it in
8402 # preloaded symbol tables.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008403 # Exclude shared library initialization/finalization symbols.
Lev Walkin8e8b5482004-06-17 23:42:48 +00008404 extract_expsyms_cmds=
8405
8406 case $host_os in
Lev Walkinaef10c32014-01-14 01:47:25 -08008407 cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008408 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8409 # When not using gcc, we currently assume that we are using
8410 # Microsoft Visual C++.
8411 if test "$GCC" != yes; then
8412 with_gnu_ld=no
8413 fi
8414 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008415 interix*)
8416 # we just hope/assume this is gcc and not c89 (= MSVC++)
8417 with_gnu_ld=yes
8418 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008419 openbsd*)
8420 with_gnu_ld=no
8421 ;;
8422 esac
8423
8424 ld_shlibs=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08008425
8426 # On some targets, GNU ld is compatible enough with the native linker
8427 # that we're better off using the native interface for both.
8428 lt_use_gnu_ld_interface=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008429 if test "$with_gnu_ld" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008430 case $host_os in
8431 aix*)
8432 # The AIX port of GNU ld has always aspired to compatibility
8433 # with the native linker. However, as the warning in the GNU ld
8434 # block says, versions before 2.19.5* couldn't really create working
8435 # shared libraries, regardless of the interface used.
8436 case `$LD -v 2>&1` in
8437 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8438 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8439 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8440 *)
8441 lt_use_gnu_ld_interface=yes
8442 ;;
8443 esac
8444 ;;
8445 *)
8446 lt_use_gnu_ld_interface=yes
8447 ;;
8448 esac
8449 fi
8450
8451 if test "$lt_use_gnu_ld_interface" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008452 # If archive_cmds runs LD, not CC, wlarc should be empty
8453 wlarc='${wl}'
8454
Lev Walkinfbf1d282007-12-03 14:58:39 +00008455 # Set some defaults for GNU ld with shared library support. These
8456 # are reset later if shared libraries are not supported. Putting them
8457 # here allows them to be overridden if necessary.
8458 runpath_var=LD_RUN_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07008459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008460 export_dynamic_flag_spec='${wl}--export-dynamic'
8461 # ancient GNU ld didn't support --whole-archive et. al.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008462 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8463 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8464 else
8465 whole_archive_flag_spec=
Lev Walkinfbf1d282007-12-03 14:58:39 +00008466 fi
8467 supports_anon_versioning=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008468 case `$LD -v 2>&1` in
Lev Walkinaef10c32014-01-14 01:47:25 -08008469 *GNU\ gold*) supports_anon_versioning=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008470 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8471 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8472 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8473 *\ 2.11.*) ;; # other 2.11 versions
8474 *) supports_anon_versioning=yes ;;
8475 esac
8476
Lev Walkin8e8b5482004-06-17 23:42:48 +00008477 # See if GNU ld supports shared libraries.
8478 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07008479 aix[3-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008480 # On AIX/PPC, the GNU linker is very broken
8481 if test "$host_cpu" != ia64; then
8482 ld_shlibs=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008483 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00008484
Lev Walkinaef10c32014-01-14 01:47:25 -08008485*** Warning: the GNU linker, at least up to release 2.19, is reported
Lev Walkin8e8b5482004-06-17 23:42:48 +00008486*** to be unable to reliably create shared libraries on AIX.
8487*** Therefore, libtool is disabling shared libraries support. If you
Lev Walkinaef10c32014-01-14 01:47:25 -08008488*** really care for shared libraries, you may want to install binutils
8489*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8490*** You will then need to restart the configuration process.
Lev Walkin8e8b5482004-06-17 23:42:48 +00008491
Lev Walkin4da95cf2010-10-16 02:46:32 -07008492_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00008493 fi
8494 ;;
8495
8496 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008497 case $host_cpu in
8498 powerpc)
8499 # see comment about AmigaOS4 .so support
8500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8501 archive_expsym_cmds=''
8502 ;;
8503 m68k)
8504 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)'
8505 hardcode_libdir_flag_spec='-L$libdir'
8506 hardcode_minus_L=yes
8507 ;;
8508 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008509 ;;
8510
8511 beos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008513 allow_undefined_flag=unsupported
8514 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8515 # support --undefined. This deserves some investigation. FIXME
8516 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8517 else
8518 ld_shlibs=no
8519 fi
8520 ;;
8521
Lev Walkinaef10c32014-01-14 01:47:25 -08008522 cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008523 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Lev Walkin8e8b5482004-06-17 23:42:48 +00008524 # as there is no search path for DLLs.
8525 hardcode_libdir_flag_spec='-L$libdir'
Lev Walkinaef10c32014-01-14 01:47:25 -08008526 export_dynamic_flag_spec='${wl}--export-all-symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008527 allow_undefined_flag=unsupported
8528 always_export_symbols=no
8529 enable_shared_with_static_runtimes=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08008530 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'
8531 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008532
Lev Walkin4da95cf2010-10-16 02:46:32 -07008533 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008535 # If the export-symbols file already is a .def file (1st line
8536 # is EXPORTS), use it as is; otherwise, prepend...
8537 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8538 cp $export_symbols $output_objdir/$soname.def;
8539 else
8540 echo EXPORTS > $output_objdir/$soname.def;
8541 cat $export_symbols >> $output_objdir/$soname.def;
8542 fi~
Lev Walkinfbf1d282007-12-03 14:58:39 +00008543 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8544 else
8545 ld_shlibs=no
8546 fi
8547 ;;
8548
Lev Walkinaef10c32014-01-14 01:47:25 -08008549 haiku*)
8550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8551 link_all_deplibs=yes
8552 ;;
8553
Lev Walkin4da95cf2010-10-16 02:46:32 -07008554 interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008555 hardcode_direct=no
8556 hardcode_shlibpath_var=no
8557 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8558 export_dynamic_flag_spec='${wl}-E'
8559 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8560 # Instead, shared libraries are loaded at an image base (0x10000000 by
8561 # default) and relocated if they conflict, which is a slow very memory
8562 # consuming and fragmenting process. To avoid this, we pick a random,
8563 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8564 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8565 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8566 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'
8567 ;;
8568
Lev Walkinaef10c32014-01-14 01:47:25 -08008569 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008570 tmp_diet=no
8571 if test "$host_os" = linux-dietlibc; then
8572 case $cc_basename in
8573 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8574 esac
8575 fi
8576 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8577 && test "$tmp_diet" = no
8578 then
Lev Walkinaef10c32014-01-14 01:47:25 -08008579 tmp_addflag=' $pic_flag'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008580 tmp_sharedflag='-shared'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008581 case $cc_basename,$host_cpu in
Lev Walkin4da95cf2010-10-16 02:46:32 -07008582 pgcc*) # Portland Group C compiler
Lev Walkinaef10c32014-01-14 01:47:25 -08008583 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'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008584 tmp_addflag=' $pic_flag'
8585 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08008586 pgf77* | pgf90* | pgf95* | pgfortran*)
8587 # Portland Group f77 and f90 compilers
8588 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'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008589 tmp_addflag=' $pic_flag -Mnomain' ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07008590 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Lev Walkinfbf1d282007-12-03 14:58:39 +00008591 tmp_addflag=' -i_dynamic' ;;
8592 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8593 tmp_addflag=' -i_dynamic -nofor_main' ;;
8594 ifc* | ifort*) # Intel Fortran compiler
8595 tmp_addflag=' -nofor_main' ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08008596 lf95*) # Lahey Fortran 8.1
8597 whole_archive_flag_spec=
8598 tmp_sharedflag='--shared' ;;
8599 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008600 tmp_sharedflag='-qmkshrobj'
8601 tmp_addflag= ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08008602 nvcc*) # Cuda Compiler Driver 2.2
8603 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'
8604 compiler_needs_object=yes
8605 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008606 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07008607 case `$CC -V 2>&1 | sed 5q` in
8608 *Sun\ C*) # Sun C 5.9
Lev Walkinaef10c32014-01-14 01:47:25 -08008609 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'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008610 compiler_needs_object=yes
8611 tmp_sharedflag='-G' ;;
8612 *Sun\ F*) # Sun Fortran 8.3
8613 tmp_sharedflag='-G' ;;
8614 esac
8615 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008616
Lev Walkin4da95cf2010-10-16 02:46:32 -07008617 if test "x$supports_anon_versioning" = xyes; then
8618 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8619 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8620 echo "local: *; };" >> $output_objdir/$libname.ver~
8621 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8622 fi
8623
8624 case $cc_basename in
Lev Walkinaef10c32014-01-14 01:47:25 -08008625 xlf* | bgf* | bgxlf* | mpixlf*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008626 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8627 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8628 hardcode_libdir_flag_spec=
8629 hardcode_libdir_flag_spec_ld='-rpath $libdir'
Lev Walkinaef10c32014-01-14 01:47:25 -08008630 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008631 if test "x$supports_anon_versioning" = xyes; then
8632 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8633 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8634 echo "local: *; };" >> $output_objdir/$libname.ver~
Lev Walkinaef10c32014-01-14 01:47:25 -08008635 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008636 fi
8637 ;;
8638 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008639 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008640 ld_shlibs=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008641 fi
8642 ;;
8643
8644 netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008645 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008646 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8647 wlarc=
8648 else
Lev Walkinaef10c32014-01-14 01:47:25 -08008649 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8650 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008651 fi
8652 ;;
8653
Lev Walkinfbf1d282007-12-03 14:58:39 +00008654 solaris*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008655 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008656 ld_shlibs=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008657 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00008658
8659*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8660*** create shared libraries on Solaris systems. Therefore, libtool
8661*** is disabling shared libraries support. We urge you to upgrade GNU
8662*** binutils to release 2.9.1 or newer. Another option is to modify
8663*** your PATH or compiler configuration so that the native linker is
8664*** used, and then restart.
8665
Lev Walkin4da95cf2010-10-16 02:46:32 -07008666_LT_EOF
8667 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008668 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008670 else
8671 ld_shlibs=no
8672 fi
8673 ;;
8674
Lev Walkinfbf1d282007-12-03 14:58:39 +00008675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8676 case `$LD -v 2>&1` in
8677 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8678 ld_shlibs=no
8679 cat <<_LT_EOF 1>&2
8680
8681*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8682*** reliably create shared libraries on SCO systems. Therefore, libtool
8683*** is disabling shared libraries support. We urge you to upgrade GNU
8684*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8685*** your PATH or compiler configuration so that the native linker is
8686*** used, and then restart.
8687
8688_LT_EOF
8689 ;;
8690 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008691 # For security reasons, it is highly recommended that you always
8692 # use absolute paths for naming shared libraries, and exclude the
8693 # DT_RUNPATH tag from executables and libraries. But doing so
8694 # requires that you compile everything twice, which is a pain.
8695 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008699 else
8700 ld_shlibs=no
8701 fi
8702 ;;
8703 esac
8704 ;;
8705
Lev Walkin8e8b5482004-06-17 23:42:48 +00008706 sunos4*)
8707 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8708 wlarc=
8709 hardcode_direct=yes
8710 hardcode_shlibpath_var=no
8711 ;;
8712
Lev Walkin8e8b5482004-06-17 23:42:48 +00008713 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008714 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008715 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8716 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008717 else
8718 ld_shlibs=no
8719 fi
8720 ;;
8721 esac
8722
Lev Walkinfbf1d282007-12-03 14:58:39 +00008723 if test "$ld_shlibs" = no; then
8724 runpath_var=
8725 hardcode_libdir_flag_spec=
8726 export_dynamic_flag_spec=
8727 whole_archive_flag_spec=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008728 fi
8729 else
8730 # PORTME fill in a description of your system's linker (not GNU ld)
8731 case $host_os in
8732 aix3*)
8733 allow_undefined_flag=unsupported
8734 always_export_symbols=yes
8735 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'
8736 # Note: this linker hardcodes the directories in LIBPATH if there
8737 # are no directories specified by -L.
8738 hardcode_minus_L=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008739 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008740 # Neither direct hardcoding nor static linking is supported with a
8741 # broken collect2.
8742 hardcode_direct=unsupported
8743 fi
8744 ;;
8745
Lev Walkin4da95cf2010-10-16 02:46:32 -07008746 aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008747 if test "$host_cpu" = ia64; then
8748 # On IA64, the linker does run time linking by default, so we don't
8749 # have to do anything special.
8750 aix_use_runtimelinking=no
8751 exp_sym_flag='-Bexport'
8752 no_entry_flag=""
8753 else
8754 # If we're using GNU nm, then we don't want the "-C" option.
8755 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Lev Walkinaef10c32014-01-14 01:47:25 -08008756 # Also, AIX nm treats weak defined symbols like other global
8757 # defined symbols, whereas GNU nm marks them as "W".
Lev Walkin4da95cf2010-10-16 02:46:32 -07008758 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008759 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008760 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008761 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008762 fi
8763 aix_use_runtimelinking=no
8764
8765 # Test if we are trying to use run time linking or normal
8766 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8767 # need to do runtime linking.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008768 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008769 for ld_flag in $LDFLAGS; do
Lev Walkin4da95cf2010-10-16 02:46:32 -07008770 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8771 aix_use_runtimelinking=yes
8772 break
8773 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008774 done
Lev Walkinfbf1d282007-12-03 14:58:39 +00008775 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008776 esac
8777
8778 exp_sym_flag='-bexport'
8779 no_entry_flag='-bnoentry'
8780 fi
8781
8782 # When large executables or shared objects are built, AIX ld can
8783 # have problems creating the table of contents. If linking a library
8784 # or program results in "error TOC overflow" add -mminimal-toc to
8785 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8786 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8787
8788 archive_cmds=''
8789 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008790 hardcode_direct_absolute=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00008791 hardcode_libdir_separator=':'
8792 link_all_deplibs=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008793 file_list_spec='${wl}-f,'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008794
8795 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008796 case $host_os in aix4.[012]|aix4.[012].*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008797 # We only want to do this on AIX 4.2 and lower, the check
8798 # below for broken collect2 doesn't work under 4.3+
8799 collect2name=`${CC} -print-prog-name=collect2`
Lev Walkin4da95cf2010-10-16 02:46:32 -07008800 if test -f "$collect2name" &&
8801 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +00008802 then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008803 # We have reworked collect2
8804 :
Lev Walkin8e8b5482004-06-17 23:42:48 +00008805 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008806 # We have old collect2
8807 hardcode_direct=unsupported
8808 # It fails to find uninstalled libraries when the uninstalled
8809 # path is not listed in the libpath. Setting hardcode_minus_L
8810 # to unsupported forces relinking
8811 hardcode_minus_L=yes
8812 hardcode_libdir_flag_spec='-L$libdir'
8813 hardcode_libdir_separator=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008814 fi
Lev Walkinfbf1d282007-12-03 14:58:39 +00008815 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008816 esac
8817 shared_flag='-shared'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008818 if test "$aix_use_runtimelinking" = yes; then
8819 shared_flag="$shared_flag "'${wl}-G'
8820 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008821 else
8822 # not using gcc
8823 if test "$host_cpu" = ia64; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008824 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8825 # chokes on -Wl,-G. The following line is correct:
Lev Walkin8e8b5482004-06-17 23:42:48 +00008826 shared_flag='-G'
8827 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00008828 if test "$aix_use_runtimelinking" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008829 shared_flag='${wl}-G'
8830 else
8831 shared_flag='${wl}-bM:SRE'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008832 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008833 fi
8834 fi
8835
Lev Walkinaef10c32014-01-14 01:47:25 -08008836 export_dynamic_flag_spec='${wl}-bexpall'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008837 # It seems that -bexpall does not export symbols beginning with
8838 # underscore (_), so it is better to generate a list of symbols to export.
8839 always_export_symbols=yes
8840 if test "$aix_use_runtimelinking" = yes; then
8841 # Warning - without using the other runtime loading flags (-brtl),
8842 # -berok will link without error, but may produce a broken library.
8843 allow_undefined_flag='-berok'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008844 # Determine the default libpath from the value encoded in an
8845 # empty executable.
Lev Walkinaef10c32014-01-14 01:47:25 -08008846 if test "${lt_cv_aix_libpath+set}" = set; then
8847 aix_libpath=$lt_cv_aix_libpath
8848else
8849 if ${lt_cv_aix_libpath_+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851else
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008853/* end confdefs.h. */
8854
8855int
8856main ()
8857{
8858
8859 ;
8860 return 0;
8861}
8862_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08008863if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00008864
Lev Walkinaef10c32014-01-14 01:47:25 -08008865 lt_aix_libpath_sed='
8866 /Import File Strings/,/^$/ {
8867 /^0/ {
8868 s/^0 *\([^ ]*\) *$/\1/
8869 p
8870 }
8871 }'
8872 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8873 # Check for a 64-bit object if we didn't find anything.
8874 if test -z "$lt_cv_aix_libpath_"; then
8875 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8876 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08008877fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008878rm -f core conftest.err conftest.$ac_objext \
8879 conftest$ac_exeext conftest.$ac_ext
8880 if test -z "$lt_cv_aix_libpath_"; then
8881 lt_cv_aix_libpath_="/usr/lib:/lib"
8882 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008883
Lev Walkin8e8b5482004-06-17 23:42:48 +00008884fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008885
Lev Walkinaef10c32014-01-14 01:47:25 -08008886 aix_libpath=$lt_cv_aix_libpath_
8887fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008888
8889 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Lev Walkinaef10c32014-01-14 01:47:25 -08008890 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Lev Walkin4da95cf2010-10-16 02:46:32 -07008891 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00008892 if test "$host_cpu" = ia64; then
8893 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8894 allow_undefined_flag="-z nodefs"
Lev Walkinfbf1d282007-12-03 14:58:39 +00008895 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"
Lev Walkin8e8b5482004-06-17 23:42:48 +00008896 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008897 # Determine the default libpath from the value encoded in an
8898 # empty executable.
Lev Walkinaef10c32014-01-14 01:47:25 -08008899 if test "${lt_cv_aix_libpath+set}" = set; then
8900 aix_libpath=$lt_cv_aix_libpath
8901else
8902 if ${lt_cv_aix_libpath_+:} false; then :
8903 $as_echo_n "(cached) " >&6
8904else
8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008906/* end confdefs.h. */
8907
8908int
8909main ()
8910{
8911
8912 ;
8913 return 0;
8914}
8915_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08008916if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00008917
Lev Walkinaef10c32014-01-14 01:47:25 -08008918 lt_aix_libpath_sed='
8919 /Import File Strings/,/^$/ {
8920 /^0/ {
8921 s/^0 *\([^ ]*\) *$/\1/
8922 p
8923 }
8924 }'
8925 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8926 # Check for a 64-bit object if we didn't find anything.
8927 if test -z "$lt_cv_aix_libpath_"; then
8928 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8929 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08008930fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008931rm -f core conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8933 if test -z "$lt_cv_aix_libpath_"; then
8934 lt_cv_aix_libpath_="/usr/lib:/lib"
8935 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008936
Lev Walkin8e8b5482004-06-17 23:42:48 +00008937fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008938
Lev Walkinaef10c32014-01-14 01:47:25 -08008939 aix_libpath=$lt_cv_aix_libpath_
8940fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008941
8942 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8943 # Warning - without using the other run time loading flags,
8944 # -berok will link without error, but may produce a broken library.
8945 no_undefined_flag=' ${wl}-bernotok'
8946 allow_undefined_flag=' ${wl}-berok'
Lev Walkinaef10c32014-01-14 01:47:25 -08008947 if test "$with_gnu_ld" = yes; then
8948 # We only use this code for GNU lds that support --whole-archive.
8949 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8950 else
8951 # Exported symbols can be pulled into shared objects from archives
8952 whole_archive_flag_spec='$convenience'
8953 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008954 archive_cmds_need_lc=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008955 # This is similar to how AIX traditionally builds its shared libraries.
8956 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008957 fi
8958 fi
8959 ;;
8960
8961 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008962 case $host_cpu in
8963 powerpc)
8964 # see comment about AmigaOS4 .so support
8965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8966 archive_expsym_cmds=''
8967 ;;
8968 m68k)
8969 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)'
8970 hardcode_libdir_flag_spec='-L$libdir'
8971 hardcode_minus_L=yes
8972 ;;
8973 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008974 ;;
8975
Lev Walkinfbf1d282007-12-03 14:58:39 +00008976 bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008977 export_dynamic_flag_spec=-rdynamic
8978 ;;
8979
Lev Walkinaef10c32014-01-14 01:47:25 -08008980 cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008981 # When not using gcc, we currently assume that we are using
8982 # Microsoft Visual C++.
8983 # hardcode_libdir_flag_spec is actually meaningless, as there is
8984 # no search path for DLLs.
Lev Walkinaef10c32014-01-14 01:47:25 -08008985 case $cc_basename in
8986 cl*)
8987 # Native MSVC
8988 hardcode_libdir_flag_spec=' '
8989 allow_undefined_flag=unsupported
8990 always_export_symbols=yes
8991 file_list_spec='@'
8992 # Tell ltmain to make .lib files, not .a files.
8993 libext=lib
8994 # Tell ltmain to make .dll files, not .so files.
8995 shrext_cmds=".dll"
8996 # FIXME: Setting linknames here is a bad hack.
8997 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8998 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8999 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9000 else
9001 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9002 fi~
9003 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9004 linknames='
9005 # The linker will not automatically build a static lib if we build a DLL.
9006 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9007 enable_shared_with_static_runtimes=yes
9008 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9009 # Don't use ranlib
9010 old_postinstall_cmds='chmod 644 $oldlib'
9011 postlink_cmds='lt_outputfile="@OUTPUT@"~
9012 lt_tool_outputfile="@TOOL_OUTPUT@"~
9013 case $lt_outputfile in
9014 *.exe|*.EXE) ;;
9015 *)
9016 lt_outputfile="$lt_outputfile.exe"
9017 lt_tool_outputfile="$lt_tool_outputfile.exe"
9018 ;;
9019 esac~
9020 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9021 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9022 $RM "$lt_outputfile.manifest";
9023 fi'
9024 ;;
9025 *)
9026 # Assume MSVC wrapper
9027 hardcode_libdir_flag_spec=' '
9028 allow_undefined_flag=unsupported
9029 # Tell ltmain to make .lib files, not .a files.
9030 libext=lib
9031 # Tell ltmain to make .dll files, not .so files.
9032 shrext_cmds=".dll"
9033 # FIXME: Setting linknames here is a bad hack.
9034 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9035 # The linker will automatically build a .lib file if we build a DLL.
9036 old_archive_from_new_cmds='true'
9037 # FIXME: Should let the user specify the lib program.
9038 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9039 enable_shared_with_static_runtimes=yes
9040 ;;
9041 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009042 ;;
9043
9044 darwin* | rhapsody*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009045
9046
9047 archive_cmds_need_lc=no
9048 hardcode_direct=no
9049 hardcode_automatic=yes
9050 hardcode_shlibpath_var=unsupported
Lev Walkinaef10c32014-01-14 01:47:25 -08009051 if test "$lt_cv_ld_force_load" = "yes"; then
9052 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\"`'
9053 else
9054 whole_archive_flag_spec=''
9055 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009056 link_all_deplibs=yes
9057 allow_undefined_flag="$_lt_dar_allow_undefined"
Lev Walkinaef10c32014-01-14 01:47:25 -08009058 case $cc_basename in
9059 ifort*) _lt_dar_can_shared=yes ;;
9060 *) _lt_dar_can_shared=$GCC ;;
9061 esac
9062 if test "$_lt_dar_can_shared" = "yes"; then
9063 output_verbose_link_cmd=func_echo_all
Lev Walkin4da95cf2010-10-16 02:46:32 -07009064 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9065 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9066 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}"
9067 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}"
9068
9069 else
9070 ld_shlibs=no
9071 fi
9072
Lev Walkin8e8b5482004-06-17 23:42:48 +00009073 ;;
9074
9075 dgux*)
9076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9077 hardcode_libdir_flag_spec='-L$libdir'
9078 hardcode_shlibpath_var=no
9079 ;;
9080
9081 freebsd1*)
9082 ld_shlibs=no
9083 ;;
9084
9085 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9086 # support. Future versions do this automatically, but an explicit c++rt0.o
9087 # does not break anything, and helps significantly (at the cost of a little
9088 # extra space).
9089 freebsd2.2*)
9090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9091 hardcode_libdir_flag_spec='-R$libdir'
9092 hardcode_direct=yes
9093 hardcode_shlibpath_var=no
9094 ;;
9095
9096 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9097 freebsd2*)
9098 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9099 hardcode_direct=yes
9100 hardcode_minus_L=yes
9101 hardcode_shlibpath_var=no
9102 ;;
9103
9104 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Lev Walkin4da95cf2010-10-16 02:46:32 -07009105 freebsd* | dragonfly*)
Lev Walkinaef10c32014-01-14 01:47:25 -08009106 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009107 hardcode_libdir_flag_spec='-R$libdir'
9108 hardcode_direct=yes
9109 hardcode_shlibpath_var=no
9110 ;;
9111
9112 hpux9*)
9113 if test "$GCC" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08009114 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009115 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009116 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009117 fi
9118 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9119 hardcode_libdir_separator=:
9120 hardcode_direct=yes
9121
9122 # hardcode_minus_L: Not really in the search PATH,
9123 # but as the default location of the library.
9124 hardcode_minus_L=yes
9125 export_dynamic_flag_spec='${wl}-E'
9126 ;;
9127
Lev Walkinfbf1d282007-12-03 14:58:39 +00009128 hpux10*)
Lev Walkinaef10c32014-01-14 01:47:25 -08009129 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9130 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009131 else
9132 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9133 fi
9134 if test "$with_gnu_ld" = no; then
9135 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009136 hardcode_libdir_flag_spec_ld='+b $libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009137 hardcode_libdir_separator=:
Lev Walkinfbf1d282007-12-03 14:58:39 +00009138 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07009139 hardcode_direct_absolute=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00009140 export_dynamic_flag_spec='${wl}-E'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009141 # hardcode_minus_L: Not really in the search PATH,
9142 # but as the default location of the library.
9143 hardcode_minus_L=yes
9144 fi
9145 ;;
9146
9147 hpux11*)
Lev Walkinaef10c32014-01-14 01:47:25 -08009148 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009149 case $host_cpu in
9150 hppa*64*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009151 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9152 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009153 ia64*)
Lev Walkinaef10c32014-01-14 01:47:25 -08009154 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009155 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009156 *)
Lev Walkinaef10c32014-01-14 01:47:25 -08009157 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009158 ;;
9159 esac
9160 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00009161 case $host_cpu in
9162 hppa*64*)
9163 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9164 ;;
9165 ia64*)
9166 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009167 ;;
9168 *)
Lev Walkinaef10c32014-01-14 01:47:25 -08009169
9170 # Older versions of the 11.00 compiler do not understand -b yet
9171 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9173$as_echo_n "checking if $CC understands -b... " >&6; }
9174if ${lt_cv_prog_compiler__b+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176else
9177 lt_cv_prog_compiler__b=no
9178 save_LDFLAGS="$LDFLAGS"
9179 LDFLAGS="$LDFLAGS -b"
9180 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9181 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9182 # The linker can only warn and ignore the option if not recognized
9183 # So say no if there are warnings
9184 if test -s conftest.err; then
9185 # Append any errors to the config.log.
9186 cat conftest.err 1>&5
9187 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9189 if diff conftest.exp conftest.er2 >/dev/null; then
9190 lt_cv_prog_compiler__b=yes
9191 fi
9192 else
9193 lt_cv_prog_compiler__b=yes
9194 fi
9195 fi
9196 $RM -r conftest*
9197 LDFLAGS="$save_LDFLAGS"
9198
9199fi
9200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9201$as_echo "$lt_cv_prog_compiler__b" >&6; }
9202
9203if test x"$lt_cv_prog_compiler__b" = xyes; then
9204 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9205else
9206 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9207fi
9208
Lev Walkin8e8b5482004-06-17 23:42:48 +00009209 ;;
9210 esac
9211 fi
9212 if test "$with_gnu_ld" = no; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009213 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9214 hardcode_libdir_separator=:
Lev Walkin8e8b5482004-06-17 23:42:48 +00009215
Lev Walkinfbf1d282007-12-03 14:58:39 +00009216 case $host_cpu in
9217 hppa*64*|ia64*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00009218 hardcode_direct=no
9219 hardcode_shlibpath_var=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009220 ;;
9221 *)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009222 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07009223 hardcode_direct_absolute=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00009224 export_dynamic_flag_spec='${wl}-E'
9225
9226 # hardcode_minus_L: Not really in the search PATH,
9227 # but as the default location of the library.
9228 hardcode_minus_L=yes
9229 ;;
9230 esac
9231 fi
9232 ;;
9233
9234 irix5* | irix6* | nonstopux*)
9235 if test "$GCC" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08009236 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'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009237 # Try to use the -exported_symbol ld option, if it does not
9238 # work, assume that -exports_file does not work either and
9239 # implicitly export all symbols.
Lev Walkinaef10c32014-01-14 01:47:25 -08009240 # This should be the same for all languages, so no per-tag cache variable.
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9242$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9243if ${lt_cv_irix_exported_symbol+:} false; then :
9244 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07009245else
Lev Walkinaef10c32014-01-14 01:47:25 -08009246 save_LDFLAGS="$LDFLAGS"
9247 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h. */
9250int foo (void) { return 0; }
9251_ACEOF
9252if ac_fn_c_try_link "$LINENO"; then :
9253 lt_cv_irix_exported_symbol=yes
9254else
9255 lt_cv_irix_exported_symbol=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07009256fi
Lev Walkinaef10c32014-01-14 01:47:25 -08009257rm -f core conftest.err conftest.$ac_objext \
9258 conftest$ac_exeext conftest.$ac_ext
9259 LDFLAGS="$save_LDFLAGS"
9260fi
9261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9262$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9263 if test "$lt_cv_irix_exported_symbol" = yes; then
9264 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'
9265 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009266 else
Lev Walkinaef10c32014-01-14 01:47:25 -08009267 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'
9268 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009269 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009270 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9272 hardcode_libdir_separator=:
Lev Walkin4da95cf2010-10-16 02:46:32 -07009273 inherit_rpath=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00009274 link_all_deplibs=yes
9275 ;;
9276
9277 netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009278 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9280 else
9281 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9282 fi
9283 hardcode_libdir_flag_spec='-R$libdir'
9284 hardcode_direct=yes
9285 hardcode_shlibpath_var=no
9286 ;;
9287
9288 newsos6)
9289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9290 hardcode_direct=yes
9291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292 hardcode_libdir_separator=:
9293 hardcode_shlibpath_var=no
9294 ;;
9295
Lev Walkin4da95cf2010-10-16 02:46:32 -07009296 *nto* | *qnx*)
9297 ;;
9298
Lev Walkin8e8b5482004-06-17 23:42:48 +00009299 openbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009300 if test -f /usr/libexec/ld.so; then
9301 hardcode_direct=yes
9302 hardcode_shlibpath_var=no
9303 hardcode_direct_absolute=yes
9304 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9305 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9306 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9307 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9308 export_dynamic_flag_spec='${wl}-E'
9309 else
9310 case $host_os in
9311 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9313 hardcode_libdir_flag_spec='-R$libdir'
9314 ;;
9315 *)
9316 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9317 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9318 ;;
9319 esac
9320 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009321 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009322 ld_shlibs=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009323 fi
9324 ;;
9325
9326 os2*)
9327 hardcode_libdir_flag_spec='-L$libdir'
9328 hardcode_minus_L=yes
9329 allow_undefined_flag=unsupported
Lev Walkinaef10c32014-01-14 01:47:25 -08009330 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009331 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009332 ;;
9333
9334 osf3*)
9335 if test "$GCC" = yes; then
9336 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Lev Walkinaef10c32014-01-14 01:47:25 -08009337 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009338 else
9339 allow_undefined_flag=' -expect_unresolved \*'
Lev Walkinaef10c32014-01-14 01:47:25 -08009340 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009341 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009342 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9344 hardcode_libdir_separator=:
9345 ;;
9346
9347 osf4* | osf5*) # as osf3* with the addition of -msym flag
9348 if test "$GCC" = yes; then
9349 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Lev Walkinaef10c32014-01-14 01:47:25 -08009350 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9352 else
9353 allow_undefined_flag=' -expect_unresolved \*'
Lev Walkinaef10c32014-01-14 01:47:25 -08009354 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'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009355 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~
Lev Walkinaef10c32014-01-14 01:47:25 -08009356 $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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009357
9358 # Both c and cxx compiler support -rpath directly
9359 hardcode_libdir_flag_spec='-rpath $libdir'
9360 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009361 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009362 hardcode_libdir_separator=:
9363 ;;
9364
Lev Walkin8e8b5482004-06-17 23:42:48 +00009365 solaris*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009366 no_undefined_flag=' -z defs'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009367 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009368 wlarc='${wl}'
Lev Walkinaef10c32014-01-14 01:47:25 -08009369 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009370 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Lev Walkinaef10c32014-01-14 01:47:25 -08009371 $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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009372 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009373 case `$CC -V 2>&1` in
9374 *"Compilers 5.0"*)
9375 wlarc=''
9376 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9378 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9379 ;;
9380 *)
9381 wlarc='${wl}'
9382 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9383 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9384 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9385 ;;
9386 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009387 fi
9388 hardcode_libdir_flag_spec='-R$libdir'
9389 hardcode_shlibpath_var=no
9390 case $host_os in
9391 solaris2.[0-5] | solaris2.[0-5].*) ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009392 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009393 # The compiler driver will combine and reorder linker options,
9394 # but understands `-z linker_flag'. GCC discards it without `$wl',
9395 # but is careful enough not to reorder.
9396 # Supported since Solaris 2.6 (maybe 2.5.1?)
9397 if test "$GCC" = yes; then
9398 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9399 else
9400 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9401 fi
9402 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009403 esac
9404 link_all_deplibs=yes
9405 ;;
9406
9407 sunos4*)
9408 if test "x$host_vendor" = xsequent; then
9409 # Use $CC to link under sequent, because it throws in some extra .o
9410 # files that make .init and .fini sections work.
9411 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9412 else
9413 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9414 fi
9415 hardcode_libdir_flag_spec='-L$libdir'
9416 hardcode_direct=yes
9417 hardcode_minus_L=yes
9418 hardcode_shlibpath_var=no
9419 ;;
9420
9421 sysv4)
9422 case $host_vendor in
9423 sni)
9424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9425 hardcode_direct=yes # is this really true???
9426 ;;
9427 siemens)
9428 ## LD is ld it makes a PLAMLIB
9429 ## CC just makes a GrossModule.
9430 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9431 reload_cmds='$CC -r -o $output$reload_objs'
9432 hardcode_direct=no
9433 ;;
9434 motorola)
9435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9437 ;;
9438 esac
9439 runpath_var='LD_RUN_PATH'
9440 hardcode_shlibpath_var=no
9441 ;;
9442
9443 sysv4.3*)
9444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9445 hardcode_shlibpath_var=no
9446 export_dynamic_flag_spec='-Bexport'
9447 ;;
9448
9449 sysv4*MP*)
9450 if test -d /usr/nec; then
9451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9452 hardcode_shlibpath_var=no
9453 runpath_var=LD_RUN_PATH
9454 hardcode_runpath_var=yes
9455 ld_shlibs=yes
9456 fi
9457 ;;
9458
Lev Walkin4da95cf2010-10-16 02:46:32 -07009459 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00009460 no_undefined_flag='${wl}-z,text'
9461 archive_cmds_need_lc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009462 hardcode_shlibpath_var=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00009463 runpath_var='LD_RUN_PATH'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009464
Lev Walkin8e8b5482004-06-17 23:42:48 +00009465 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009466 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009468 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00009469 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9470 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009471 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009472 ;;
9473
Lev Walkinfbf1d282007-12-03 14:58:39 +00009474 sysv5* | sco3.2v5* | sco5v6*)
9475 # Note: We can NOT use -z defs as we might desire, because we do not
9476 # link with -lc, and that would cause any symbols used from libc to
9477 # always be unresolved, which means just about no library would
9478 # ever link correctly. If we're not using GNU ld we use -z text
9479 # though, which does catch some bad symbols but isn't as heavy-handed
9480 # as -z defs.
9481 no_undefined_flag='${wl}-z,text'
9482 allow_undefined_flag='${wl}-z,nodefs'
9483 archive_cmds_need_lc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009484 hardcode_shlibpath_var=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07009485 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009486 hardcode_libdir_separator=':'
9487 link_all_deplibs=yes
9488 export_dynamic_flag_spec='${wl}-Bexport'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009489 runpath_var='LD_RUN_PATH'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009490
9491 if test "$GCC" = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07009492 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009494 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009495 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009497 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009498 ;;
9499
9500 uts4*)
9501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9502 hardcode_libdir_flag_spec='-L$libdir'
9503 hardcode_shlibpath_var=no
9504 ;;
9505
9506 *)
9507 ld_shlibs=no
9508 ;;
9509 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07009510
9511 if test x$host_vendor = xsni; then
9512 case $host in
9513 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9514 export_dynamic_flag_spec='${wl}-Blargedynsym'
9515 ;;
9516 esac
9517 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009518 fi
9519
Lev Walkinaef10c32014-01-14 01:47:25 -08009520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07009521$as_echo "$ld_shlibs" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009522test "$ld_shlibs" = no && can_build_shared=no
9523
Lev Walkin4da95cf2010-10-16 02:46:32 -07009524with_gnu_ld=$with_gnu_ld
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
Lev Walkin8e8b5482004-06-17 23:42:48 +00009540#
9541# Do we need to explicitly link libc?
9542#
9543case "x$archive_cmds_need_lc" in
9544x|xyes)
9545 # Assume -lc should be added
9546 archive_cmds_need_lc=yes
9547
9548 if test "$enable_shared" = yes && test "$GCC" = yes; then
9549 case $archive_cmds in
9550 *'~'*)
9551 # FIXME: we may have to deal with multi-command sequences.
9552 ;;
9553 '$CC '*)
9554 # Test whether the compiler implicitly links with -lc since on some
9555 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9556 # to ld, don't add -lc before -lgcc.
Lev Walkinaef10c32014-01-14 01:47:25 -08009557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07009558$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08009559if ${lt_cv_archive_cmds_need_lc+:} false; then :
9560 $as_echo_n "(cached) " >&6
9561else
9562 $RM conftest*
9563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00009564
Lev Walkinaef10c32014-01-14 01:47:25 -08009565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009566 (eval $ac_compile) 2>&5
9567 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08009568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9569 test $ac_status = 0; } 2>conftest.err; then
9570 soname=conftest
9571 lib=conftest
9572 libobjs=conftest.$ac_objext
9573 deplibs=
9574 wl=$lt_prog_compiler_wl
9575 pic_flag=$lt_prog_compiler_pic
9576 compiler_flags=-v
9577 linker_flags=-v
9578 verstring=
9579 output_objdir=.
9580 libname=conftest
9581 lt_save_allow_undefined_flag=$allow_undefined_flag
9582 allow_undefined_flag=
9583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07009584 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009585 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08009586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9587 test $ac_status = 0; }
9588 then
9589 lt_cv_archive_cmds_need_lc=no
9590 else
9591 lt_cv_archive_cmds_need_lc=yes
9592 fi
9593 allow_undefined_flag=$lt_save_allow_undefined_flag
9594 else
9595 cat conftest.err 1>&5
9596 fi
9597 $RM conftest*
9598
9599fi
9600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9601$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9602 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Lev Walkin8e8b5482004-06-17 23:42:48 +00009603 ;;
9604 esac
9605 fi
9606 ;;
9607esac
9608
Lev Walkin4da95cf2010-10-16 02:46:32 -07009609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
Lev Walkinaef10c32014-01-14 01:47:25 -08009765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07009766$as_echo_n "checking dynamic linker characteristics... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07009767
9768if test "$GCC" = yes; then
9769 case $host_os in
9770 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9771 *) lt_awk_arg="/^libraries:/" ;;
9772 esac
Lev Walkinaef10c32014-01-14 01:47:25 -08009773 case $host_os in
9774 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9775 *) lt_sed_strip_eq="s,=/,/,g" ;;
9776 esac
9777 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9778 case $lt_search_path_spec in
9779 *\;*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009780 # if the path contains ";" then we assume it to be the separator
9781 # otherwise default to the standard path separator (i.e. ":") - it is
9782 # assumed that no part of a normal pathname contains ";" but that should
9783 # okay in the real world where ";" in dirpaths is itself problematic.
Lev Walkinaef10c32014-01-14 01:47:25 -08009784 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9785 ;;
9786 *)
9787 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9788 ;;
9789 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07009790 # Ok, now we have the path, separated by spaces, we can step through it
9791 # and add multilib dir if necessary.
9792 lt_tmp_lt_search_path_spec=
9793 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9794 for lt_sys_path in $lt_search_path_spec; do
9795 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9796 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9797 else
9798 test -d "$lt_sys_path" && \
9799 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9800 fi
9801 done
Lev Walkinaef10c32014-01-14 01:47:25 -08009802 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Lev Walkin4da95cf2010-10-16 02:46:32 -07009803BEGIN {RS=" "; FS="/|\n";} {
9804 lt_foo="";
9805 lt_count=0;
9806 for (lt_i = NF; lt_i > 0; lt_i--) {
9807 if ($lt_i != "" && $lt_i != ".") {
9808 if ($lt_i == "..") {
9809 lt_count++;
9810 } else {
9811 if (lt_count == 0) {
9812 lt_foo="/" $lt_i lt_foo;
9813 } else {
9814 lt_count--;
9815 }
9816 }
9817 }
9818 }
9819 if (lt_foo != "") { lt_freq[lt_foo]++; }
9820 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9821}'`
Lev Walkinaef10c32014-01-14 01:47:25 -08009822 # AWK program above erroneously prepends '/' to C:/dos/paths
9823 # for these hosts.
9824 case $host_os in
9825 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9826 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9827 esac
9828 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Lev Walkin4da95cf2010-10-16 02:46:32 -07009829else
9830 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9831fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009832library_names_spec=
9833libname_spec='lib$name'
9834soname_spec=
9835shrext_cmds=".so"
9836postinstall_cmds=
9837postuninstall_cmds=
9838finish_cmds=
9839finish_eval=
9840shlibpath_var=
9841shlibpath_overrides_runpath=unknown
9842version_type=none
9843dynamic_linker="$host_os ld.so"
9844sys_lib_dlsearch_path_spec="/lib /usr/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009845need_lib_prefix=unknown
9846hardcode_into_libs=no
9847
9848# when you set need_version to no, make sure it does not cause -set_version
9849# flags to be left without arguments
9850need_version=unknown
9851
9852case $host_os in
9853aix3*)
9854 version_type=linux
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9856 shlibpath_var=LIBPATH
9857
9858 # AIX 3 has no versioning support, so we append a major version to the name.
9859 soname_spec='${libname}${release}${shared_ext}$major'
9860 ;;
9861
Lev Walkin4da95cf2010-10-16 02:46:32 -07009862aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009863 version_type=linux
9864 need_lib_prefix=no
9865 need_version=no
9866 hardcode_into_libs=yes
9867 if test "$host_cpu" = ia64; then
9868 # AIX 5 supports IA64
9869 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9870 shlibpath_var=LD_LIBRARY_PATH
9871 else
9872 # With GCC up to 2.95.x, collect2 would create an import file
9873 # for dependence libraries. The import file would start with
9874 # the line `#! .'. This would cause the generated library to
9875 # depend on `.', always an invalid library. This was fixed in
9876 # development snapshots of GCC prior to 3.0.
9877 case $host_os in
9878 aix4 | aix4.[01] | aix4.[01].*)
9879 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9880 echo ' yes '
Lev Walkin4da95cf2010-10-16 02:46:32 -07009881 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009882 :
9883 else
9884 can_build_shared=no
9885 fi
9886 ;;
9887 esac
9888 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9889 # soname into executable. Probably we can add versioning support to
9890 # collect2, so additional links can be useful in future.
9891 if test "$aix_use_runtimelinking" = yes; then
9892 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9893 # instead of lib<name>.a to let people know that these are not
9894 # typical AIX shared libraries.
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896 else
9897 # We preserve .a as extension for shared libraries through AIX4.2
9898 # and later when we are not doing run time linking.
9899 library_names_spec='${libname}${release}.a $libname.a'
9900 soname_spec='${libname}${release}${shared_ext}$major'
9901 fi
9902 shlibpath_var=LIBPATH
9903 fi
9904 ;;
9905
9906amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009907 case $host_cpu in
9908 powerpc)
9909 # Since July 2007 AmigaOS4 officially supports .so libraries.
9910 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912 ;;
9913 m68k)
9914 library_names_spec='$libname.ixlibrary $libname.a'
9915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Lev Walkinaef10c32014-01-14 01:47:25 -08009916 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009917 ;;
9918 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009919 ;;
9920
9921beos*)
9922 library_names_spec='${libname}${shared_ext}'
9923 dynamic_linker="$host_os ld.so"
9924 shlibpath_var=LIBRARY_PATH
9925 ;;
9926
Lev Walkinfbf1d282007-12-03 14:58:39 +00009927bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009928 version_type=linux
9929 need_version=no
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9932 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9933 shlibpath_var=LD_LIBRARY_PATH
9934 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9935 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9936 # the default ld.so.conf also contains /usr/contrib/lib and
9937 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9938 # libtool to hard-code these into programs
9939 ;;
9940
Lev Walkinaef10c32014-01-14 01:47:25 -08009941cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009942 version_type=windows
9943 shrext_cmds=".dll"
9944 need_version=no
9945 need_lib_prefix=no
9946
Lev Walkinaef10c32014-01-14 01:47:25 -08009947 case $GCC,$cc_basename in
9948 yes,*)
9949 # gcc
Lev Walkin8e8b5482004-06-17 23:42:48 +00009950 library_names_spec='$libname.dll.a'
9951 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9952 postinstall_cmds='base_file=`basename \${file}`~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009953 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Lev Walkin8e8b5482004-06-17 23:42:48 +00009954 dldir=$destdir/`dirname \$dlpath`~
9955 test -d \$dldir || mkdir -p \$dldir~
Lev Walkinfbf1d282007-12-03 14:58:39 +00009956 $install_prog $dir/$dlname \$dldir/$dlname~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009957 chmod a+x \$dldir/$dlname~
9958 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9959 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9960 fi'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009961 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9962 dlpath=$dir/\$dldll~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009963 $RM \$dlpath'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009964 shlibpath_overrides_runpath=yes
9965
9966 case $host_os in
9967 cygwin*)
9968 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9969 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkinaef10c32014-01-14 01:47:25 -08009970
9971 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009972 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08009973 mingw* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009974 # MinGW DLLs use traditional 'lib' prefix
9975 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009976 ;;
9977 pw32*)
9978 # pw32 DLLs use 'pw' prefix rather than 'lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009979 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009980 ;;
9981 esac
Lev Walkinaef10c32014-01-14 01:47:25 -08009982 dynamic_linker='Win32 ld.exe'
9983 ;;
9984
9985 *,cl*)
9986 # Native MSVC
9987 libname_spec='$name'
9988 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9989 library_names_spec='${libname}.dll.lib'
9990
9991 case $build_os in
9992 mingw*)
9993 sys_lib_search_path_spec=
9994 lt_save_ifs=$IFS
9995 IFS=';'
9996 for lt_path in $LIB
9997 do
9998 IFS=$lt_save_ifs
9999 # Let DOS variable expansion print the short 8.3 style file name.
10000 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10001 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10002 done
10003 IFS=$lt_save_ifs
10004 # Convert to MSYS style.
10005 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10006 ;;
10007 cygwin*)
10008 # Convert to unix form, then to dos form, then back to unix form
10009 # but this time dos style (no spaces!) so that the unix form looks
10010 # like /cygdrive/c/PROGRA~1:/cygdr...
10011 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10012 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10013 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10014 ;;
10015 *)
10016 sys_lib_search_path_spec="$LIB"
10017 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10018 # It is most probably a Windows format PATH.
10019 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10020 else
10021 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10022 fi
10023 # FIXME: find the short name or the path components, as spaces are
10024 # common. (e.g. "Program Files" -> "PROGRA~1")
10025 ;;
10026 esac
10027
10028 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10029 postinstall_cmds='base_file=`basename \${file}`~
10030 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10031 dldir=$destdir/`dirname \$dlpath`~
10032 test -d \$dldir || mkdir -p \$dldir~
10033 $install_prog $dir/$dlname \$dldir/$dlname'
10034 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10035 dlpath=$dir/\$dldll~
10036 $RM \$dlpath'
10037 shlibpath_overrides_runpath=yes
10038 dynamic_linker='Win32 link.exe'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010039 ;;
10040
10041 *)
Lev Walkinaef10c32014-01-14 01:47:25 -080010042 # Assume MSVC wrapper
Lev Walkin8e8b5482004-06-17 23:42:48 +000010043 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Lev Walkinaef10c32014-01-14 01:47:25 -080010044 dynamic_linker='Win32 ld.exe'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010045 ;;
10046 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +000010047 # FIXME: first we should search . and the directory the executable is in
10048 shlibpath_var=PATH
10049 ;;
10050
10051darwin* | rhapsody*)
10052 dynamic_linker="$host_os dyld"
10053 version_type=darwin
10054 need_lib_prefix=no
10055 need_version=no
Lev Walkinaef10c32014-01-14 01:47:25 -080010056 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010057 soname_spec='${libname}${release}${major}$shared_ext'
10058 shlibpath_overrides_runpath=yes
10059 shlibpath_var=DYLD_LIBRARY_PATH
Lev Walkinfbf1d282007-12-03 14:58:39 +000010060 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Lev Walkin4da95cf2010-10-16 02:46:32 -070010061
10062 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010063 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10064 ;;
10065
10066dgux*)
10067 version_type=linux
10068 need_lib_prefix=no
10069 need_version=no
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 ;;
10074
10075freebsd1*)
10076 dynamic_linker=no
10077 ;;
10078
Lev Walkinfbf1d282007-12-03 14:58:39 +000010079freebsd* | dragonfly*)
10080 # DragonFly does not have aout. When/if they implement a new
10081 # versioning mechanism, adjust this.
10082 if test -x /usr/bin/objformat; then
10083 objformat=`/usr/bin/objformat`
10084 else
10085 case $host_os in
10086 freebsd[123]*) objformat=aout ;;
10087 *) objformat=elf ;;
10088 esac
10089 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000010090 version_type=freebsd-$objformat
10091 case $version_type in
10092 freebsd-elf*)
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10094 need_version=no
10095 need_lib_prefix=no
10096 ;;
10097 freebsd-*)
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10099 need_version=yes
10100 ;;
10101 esac
10102 shlibpath_var=LD_LIBRARY_PATH
10103 case $host_os in
10104 freebsd2*)
10105 shlibpath_overrides_runpath=yes
10106 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010107 freebsd3.[01]* | freebsdelf3.[01]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010108 shlibpath_overrides_runpath=yes
10109 hardcode_into_libs=yes
10110 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010111 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10112 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010113 shlibpath_overrides_runpath=no
10114 hardcode_into_libs=yes
10115 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070010116 *) # from 4.6 on, and DragonFly
Lev Walkinfbf1d282007-12-03 14:58:39 +000010117 shlibpath_overrides_runpath=yes
10118 hardcode_into_libs=yes
10119 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010120 esac
10121 ;;
10122
10123gnu*)
10124 version_type=linux
10125 need_lib_prefix=no
10126 need_version=no
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 shlibpath_var=LD_LIBRARY_PATH
10130 hardcode_into_libs=yes
10131 ;;
10132
Lev Walkinaef10c32014-01-14 01:47:25 -080010133haiku*)
10134 version_type=linux
10135 need_lib_prefix=no
10136 need_version=no
10137 dynamic_linker="$host_os runtime_loader"
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10139 soname_spec='${libname}${release}${shared_ext}$major'
10140 shlibpath_var=LIBRARY_PATH
10141 shlibpath_overrides_runpath=yes
10142 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10143 hardcode_into_libs=yes
10144 ;;
10145
Lev Walkin8e8b5482004-06-17 23:42:48 +000010146hpux9* | hpux10* | hpux11*)
10147 # Give a soname corresponding to the major version so that dld.sl refuses to
10148 # link against other versions.
10149 version_type=sunos
10150 need_lib_prefix=no
10151 need_version=no
Lev Walkinfbf1d282007-12-03 14:58:39 +000010152 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +000010153 ia64*)
10154 shrext_cmds='.so'
10155 hardcode_into_libs=yes
10156 dynamic_linker="$host_os dld.so"
10157 shlibpath_var=LD_LIBRARY_PATH
10158 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 if test "X$HPUX_IA64_MODE" = X32; then
10162 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10163 else
10164 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10165 fi
10166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10167 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070010168 hppa*64*)
10169 shrext_cmds='.sl'
10170 hardcode_into_libs=yes
10171 dynamic_linker="$host_os dld.sl"
10172 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10178 ;;
10179 *)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010180 shrext_cmds='.sl'
10181 dynamic_linker="$host_os dld.sl"
10182 shlibpath_var=SHLIB_PATH
10183 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 ;;
10187 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080010188 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Lev Walkin8e8b5482004-06-17 23:42:48 +000010189 postinstall_cmds='chmod 555 $lib'
Lev Walkinaef10c32014-01-14 01:47:25 -080010190 # or fails outright, so override atomically:
10191 install_override_mode=555
Lev Walkin8e8b5482004-06-17 23:42:48 +000010192 ;;
10193
Lev Walkin4da95cf2010-10-16 02:46:32 -070010194interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +000010195 version_type=linux
10196 need_lib_prefix=no
10197 need_version=no
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10199 soname_spec='${libname}${release}${shared_ext}$major'
10200 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10201 shlibpath_var=LD_LIBRARY_PATH
10202 shlibpath_overrides_runpath=no
10203 hardcode_into_libs=yes
10204 ;;
10205
Lev Walkin8e8b5482004-06-17 23:42:48 +000010206irix5* | irix6* | nonstopux*)
10207 case $host_os in
10208 nonstopux*) version_type=nonstopux ;;
10209 *)
10210 if test "$lt_cv_prog_gnu_ld" = yes; then
10211 version_type=linux
10212 else
10213 version_type=irix
10214 fi ;;
10215 esac
10216 need_lib_prefix=no
10217 need_version=no
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10220 case $host_os in
10221 irix5* | nonstopux*)
10222 libsuff= shlibsuff=
10223 ;;
10224 *)
10225 case $LD in # libtool.m4 will add one of these switches to LD
10226 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10227 libsuff= shlibsuff= libmagic=32-bit;;
10228 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10229 libsuff=32 shlibsuff=N32 libmagic=N32;;
10230 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10231 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10232 *) libsuff= shlibsuff= libmagic=never-match;;
10233 esac
10234 ;;
10235 esac
10236 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10237 shlibpath_overrides_runpath=no
10238 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10239 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10240 hardcode_into_libs=yes
10241 ;;
10242
10243# No shared lib support for Linux oldld, aout, or coff.
10244linux*oldld* | linux*aout* | linux*coff*)
10245 dynamic_linker=no
10246 ;;
10247
10248# This must be Linux ELF.
Lev Walkinaef10c32014-01-14 01:47:25 -080010249linux* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010250 version_type=linux
10251 need_lib_prefix=no
10252 need_version=no
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 shlibpath_overrides_runpath=no
Lev Walkinaef10c32014-01-14 01:47:25 -080010258
Lev Walkin4da95cf2010-10-16 02:46:32 -070010259 # Some binutils ld are patched to set DT_RUNPATH
Lev Walkinaef10c32014-01-14 01:47:25 -080010260 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10261 $as_echo_n "(cached) " >&6
10262else
10263 lt_cv_shlibpath_overrides_runpath=no
10264 save_LDFLAGS=$LDFLAGS
10265 save_libdir=$libdir
10266 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10267 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -070010269/* end confdefs.h. */
10270
10271int
10272main ()
10273{
10274
10275 ;
10276 return 0;
10277}
10278_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010279if ac_fn_c_try_link "$LINENO"; then :
10280 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10281 lt_cv_shlibpath_overrides_runpath=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -070010282fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010283fi
10284rm -f core conftest.err conftest.$ac_objext \
10285 conftest$ac_exeext conftest.$ac_ext
10286 LDFLAGS=$save_LDFLAGS
10287 libdir=$save_libdir
Lev Walkin4da95cf2010-10-16 02:46:32 -070010288
10289fi
10290
Lev Walkinaef10c32014-01-14 01:47:25 -080010291 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Lev Walkin4da95cf2010-10-16 02:46:32 -070010292
Lev Walkin8e8b5482004-06-17 23:42:48 +000010293 # This implies no fast_install, which is unacceptable.
10294 # Some rework will be needed to allow for fast_install
10295 # before this can be enabled.
10296 hardcode_into_libs=yes
10297
10298 # Append ld.so.conf contents to the search path
10299 if test -f /etc/ld.so.conf; then
Lev Walkinaef10c32014-01-14 01:47:25 -080010300 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' ' '`
Lev Walkin8e8b5482004-06-17 23:42:48 +000010301 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10302 fi
10303
10304 # We used to test for /lib/ld.so.1 and disable shared libraries on
10305 # powerpc, because MkLinux only supported shared libraries with the
10306 # GNU dynamic linker. Since this was broken with cross compilers,
10307 # most powerpc-linux boxes support dynamic linking these days and
10308 # people can always --disable-shared, the test was removed, and we
10309 # assume the GNU/Linux dynamic linker is in use.
10310 dynamic_linker='GNU/Linux ld.so'
10311 ;;
10312
Lev Walkin8e8b5482004-06-17 23:42:48 +000010313netbsd*)
10314 version_type=sunos
10315 need_lib_prefix=no
10316 need_version=no
Lev Walkin4da95cf2010-10-16 02:46:32 -070010317 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10320 dynamic_linker='NetBSD (a.out) ld.so'
10321 else
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 dynamic_linker='NetBSD ld.elf_so'
10325 fi
10326 shlibpath_var=LD_LIBRARY_PATH
10327 shlibpath_overrides_runpath=yes
10328 hardcode_into_libs=yes
10329 ;;
10330
10331newsos6)
10332 version_type=linux
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334 shlibpath_var=LD_LIBRARY_PATH
10335 shlibpath_overrides_runpath=yes
10336 ;;
10337
Lev Walkin4da95cf2010-10-16 02:46:32 -070010338*nto* | *qnx*)
10339 version_type=qnx
Lev Walkin8e8b5482004-06-17 23:42:48 +000010340 need_lib_prefix=no
10341 need_version=no
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -070010345 shlibpath_overrides_runpath=no
10346 hardcode_into_libs=yes
10347 dynamic_linker='ldqnx.so'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010348 ;;
10349
10350openbsd*)
10351 version_type=sunos
Lev Walkinfbf1d282007-12-03 14:58:39 +000010352 sys_lib_dlsearch_path_spec="/usr/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010353 need_lib_prefix=no
Lev Walkinfbf1d282007-12-03 14:58:39 +000010354 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10355 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -070010356 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10357 *) need_version=no ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010358 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +000010359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10361 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -070010362 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010363 case $host_os in
10364 openbsd2.[89] | openbsd2.[89].*)
10365 shlibpath_overrides_runpath=no
10366 ;;
10367 *)
10368 shlibpath_overrides_runpath=yes
10369 ;;
10370 esac
10371 else
10372 shlibpath_overrides_runpath=yes
10373 fi
10374 ;;
10375
10376os2*)
10377 libname_spec='$name'
10378 shrext_cmds=".dll"
10379 need_lib_prefix=no
10380 library_names_spec='$libname${shared_ext} $libname.a'
10381 dynamic_linker='OS/2 ld.exe'
10382 shlibpath_var=LIBPATH
10383 ;;
10384
10385osf3* | osf4* | osf5*)
10386 version_type=osf
10387 need_lib_prefix=no
10388 need_version=no
10389 soname_spec='${libname}${release}${shared_ext}$major'
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10393 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10394 ;;
10395
Lev Walkin4da95cf2010-10-16 02:46:32 -070010396rdos*)
10397 dynamic_linker=no
10398 ;;
10399
Lev Walkin8e8b5482004-06-17 23:42:48 +000010400solaris*)
10401 version_type=linux
10402 need_lib_prefix=no
10403 need_version=no
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405 soname_spec='${libname}${release}${shared_ext}$major'
10406 shlibpath_var=LD_LIBRARY_PATH
10407 shlibpath_overrides_runpath=yes
10408 hardcode_into_libs=yes
10409 # ldd complains unless libraries are executable
10410 postinstall_cmds='chmod +x $lib'
10411 ;;
10412
10413sunos4*)
10414 version_type=sunos
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10416 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10417 shlibpath_var=LD_LIBRARY_PATH
10418 shlibpath_overrides_runpath=yes
10419 if test "$with_gnu_ld" = yes; then
10420 need_lib_prefix=no
10421 fi
10422 need_version=yes
10423 ;;
10424
Lev Walkinfbf1d282007-12-03 14:58:39 +000010425sysv4 | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010426 version_type=linux
10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428 soname_spec='${libname}${release}${shared_ext}$major'
10429 shlibpath_var=LD_LIBRARY_PATH
10430 case $host_vendor in
10431 sni)
10432 shlibpath_overrides_runpath=no
10433 need_lib_prefix=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010434 runpath_var=LD_RUN_PATH
10435 ;;
10436 siemens)
10437 need_lib_prefix=no
10438 ;;
10439 motorola)
10440 need_lib_prefix=no
10441 need_version=no
10442 shlibpath_overrides_runpath=no
10443 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10444 ;;
10445 esac
10446 ;;
10447
10448sysv4*MP*)
10449 if test -d /usr/nec ;then
10450 version_type=linux
10451 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10452 soname_spec='$libname${shared_ext}.$major'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 fi
10455 ;;
10456
Lev Walkinfbf1d282007-12-03 14:58:39 +000010457sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10458 version_type=freebsd-elf
10459 need_lib_prefix=no
10460 need_version=no
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10463 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -070010464 shlibpath_overrides_runpath=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +000010465 hardcode_into_libs=yes
10466 if test "$with_gnu_ld" = yes; then
10467 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +000010468 else
10469 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +000010470 case $host_os in
10471 sco3.2v5*)
10472 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10473 ;;
10474 esac
10475 fi
10476 sys_lib_dlsearch_path_spec='/usr/lib'
10477 ;;
10478
Lev Walkin4da95cf2010-10-16 02:46:32 -070010479tpf*)
10480 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10481 version_type=linux
10482 need_lib_prefix=no
10483 need_version=no
Lev Walkinaef10c32014-01-14 01:47:25 -080010484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Lev Walkin4da95cf2010-10-16 02:46:32 -070010485 shlibpath_var=LD_LIBRARY_PATH
10486 shlibpath_overrides_runpath=no
10487 hardcode_into_libs=yes
10488 ;;
10489
Lev Walkin8e8b5482004-06-17 23:42:48 +000010490uts4*)
10491 version_type=linux
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 shlibpath_var=LD_LIBRARY_PATH
10495 ;;
10496
10497*)
10498 dynamic_linker=no
10499 ;;
10500esac
Lev Walkinaef10c32014-01-14 01:47:25 -080010501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010502$as_echo "$dynamic_linker" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010503test "$dynamic_linker" = no && can_build_shared=no
10504
Lev Walkinfbf1d282007-12-03 14:58:39 +000010505variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10506if test "$GCC" = yes; then
10507 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10508fi
10509
Lev Walkin4da95cf2010-10-16 02:46:32 -070010510if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10511 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10512fi
10513if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10514 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10515fi
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
Lev Walkinaef10c32014-01-14 01:47:25 -080010603
10604
10605
10606
10607
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010609$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010610hardcode_action=
Lev Walkin4da95cf2010-10-16 02:46:32 -070010611if test -n "$hardcode_libdir_flag_spec" ||
10612 test -n "$runpath_var" ||
Lev Walkinfbf1d282007-12-03 14:58:39 +000010613 test "X$hardcode_automatic" = "Xyes" ; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010614
Lev Walkin4da95cf2010-10-16 02:46:32 -070010615 # We can hardcode non-existent directories.
Lev Walkin8e8b5482004-06-17 23:42:48 +000010616 if test "$hardcode_direct" != no &&
10617 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10618 # have to relink, otherwise we might link with an installed library
10619 # when we should be linking with a yet-to-be-installed one
Lev Walkin4da95cf2010-10-16 02:46:32 -070010620 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000010621 test "$hardcode_minus_L" != no; then
10622 # Linking always hardcodes the temporary library directory.
10623 hardcode_action=relink
10624 else
10625 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10626 hardcode_action=immediate
10627 fi
10628else
10629 # We cannot hardcode anything, or else we can only hardcode existing
10630 # directories.
10631 hardcode_action=unsupported
10632fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010634$as_echo "$hardcode_action" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010635
Lev Walkin4da95cf2010-10-16 02:46:32 -070010636if test "$hardcode_action" = relink ||
10637 test "$inherit_rpath" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010638 # Fast installation is not supported
10639 enable_fast_install=no
10640elif test "$shlibpath_overrides_runpath" = yes ||
10641 test "$enable_shared" = no; then
10642 # Fast installation is not necessary
10643 enable_fast_install=needless
10644fi
10645
Lev Walkin8e8b5482004-06-17 23:42:48 +000010646
Lev Walkin4da95cf2010-10-16 02:46:32 -070010647
10648
10649
10650
10651 if test "x$enable_dlopen" != xyes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010652 enable_dlopen=unknown
10653 enable_dlopen_self=unknown
10654 enable_dlopen_self_static=unknown
10655else
10656 lt_cv_dlopen=no
10657 lt_cv_dlopen_libs=
10658
10659 case $host_os in
10660 beos*)
10661 lt_cv_dlopen="load_add_on"
10662 lt_cv_dlopen_libs=
10663 lt_cv_dlopen_self=yes
10664 ;;
10665
Lev Walkinaef10c32014-01-14 01:47:25 -080010666 mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010667 lt_cv_dlopen="LoadLibrary"
10668 lt_cv_dlopen_libs=
Lev Walkin4da95cf2010-10-16 02:46:32 -070010669 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010670
10671 cygwin*)
10672 lt_cv_dlopen="dlopen"
10673 lt_cv_dlopen_libs=
Lev Walkin4da95cf2010-10-16 02:46:32 -070010674 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010675
10676 darwin*)
10677 # if libdl is installed we need to link against it
Lev Walkinaef10c32014-01-14 01:47:25 -080010678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010679$as_echo_n "checking for dlopen in -ldl... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010680if ${ac_cv_lib_dl_dlopen+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010681 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010682else
10683 ac_check_lib_save_LIBS=$LIBS
10684LIBS="-ldl $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010686/* end confdefs.h. */
10687
Lev Walkin27fd0b62007-08-27 23:57:45 +000010688/* Override any GCC internal prototype to avoid an error.
10689 Use char because int might match the return type of a GCC
10690 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010691#ifdef __cplusplus
10692extern "C"
10693#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010694char dlopen ();
10695int
10696main ()
10697{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010698return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010699 ;
10700 return 0;
10701}
10702_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010703if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010704 ac_cv_lib_dl_dlopen=yes
10705else
Lev Walkinaef10c32014-01-14 01:47:25 -080010706 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010707fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010708rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010710LIBS=$ac_check_lib_save_LIBS
10711fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010713$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010714if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010715 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10716else
10717
10718 lt_cv_dlopen="dyld"
10719 lt_cv_dlopen_libs=
10720 lt_cv_dlopen_self=yes
10721
10722fi
10723
Lev Walkin4da95cf2010-10-16 02:46:32 -070010724 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010725
10726 *)
Lev Walkinaef10c32014-01-14 01:47:25 -080010727 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10728if test "x$ac_cv_func_shl_load" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010729 lt_cv_dlopen="shl_load"
10730else
Lev Walkinaef10c32014-01-14 01:47:25 -080010731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010732$as_echo_n "checking for shl_load in -ldld... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010733if ${ac_cv_lib_dld_shl_load+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010734 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010735else
10736 ac_check_lib_save_LIBS=$LIBS
10737LIBS="-ldld $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010739/* end confdefs.h. */
10740
Lev Walkin27fd0b62007-08-27 23:57:45 +000010741/* Override any GCC internal prototype to avoid an error.
10742 Use char because int might match the return type of a GCC
10743 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010744#ifdef __cplusplus
10745extern "C"
10746#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010747char shl_load ();
10748int
10749main ()
10750{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010751return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010752 ;
10753 return 0;
10754}
10755_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010756if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010757 ac_cv_lib_dld_shl_load=yes
10758else
Lev Walkinaef10c32014-01-14 01:47:25 -080010759 ac_cv_lib_dld_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010760fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010761rm -f core conftest.err conftest.$ac_objext \
10762 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010763LIBS=$ac_check_lib_save_LIBS
10764fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010766$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010767if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -070010768 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010769else
Lev Walkinaef10c32014-01-14 01:47:25 -080010770 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10771if test "x$ac_cv_func_dlopen" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010772 lt_cv_dlopen="dlopen"
10773else
Lev Walkinaef10c32014-01-14 01:47:25 -080010774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010775$as_echo_n "checking for dlopen in -ldl... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010776if ${ac_cv_lib_dl_dlopen+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010777 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010778else
10779 ac_check_lib_save_LIBS=$LIBS
10780LIBS="-ldl $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010782/* end confdefs.h. */
10783
Lev Walkin27fd0b62007-08-27 23:57:45 +000010784/* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010787#ifdef __cplusplus
10788extern "C"
10789#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010790char dlopen ();
10791int
10792main ()
10793{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010794return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010795 ;
10796 return 0;
10797}
10798_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010799if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010800 ac_cv_lib_dl_dlopen=yes
10801else
Lev Walkinaef10c32014-01-14 01:47:25 -080010802 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010803fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010804rm -f core conftest.err conftest.$ac_objext \
10805 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010806LIBS=$ac_check_lib_save_LIBS
10807fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010809$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010810if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010811 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10812else
Lev Walkinaef10c32014-01-14 01:47:25 -080010813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010814$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010815if ${ac_cv_lib_svld_dlopen+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010816 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010817else
10818 ac_check_lib_save_LIBS=$LIBS
10819LIBS="-lsvld $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010821/* end confdefs.h. */
10822
Lev Walkin27fd0b62007-08-27 23:57:45 +000010823/* Override any GCC internal prototype to avoid an error.
10824 Use char because int might match the return type of a GCC
10825 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010826#ifdef __cplusplus
10827extern "C"
10828#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010829char dlopen ();
10830int
10831main ()
10832{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010833return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010834 ;
10835 return 0;
10836}
10837_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010838if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010839 ac_cv_lib_svld_dlopen=yes
10840else
Lev Walkinaef10c32014-01-14 01:47:25 -080010841 ac_cv_lib_svld_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010842fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010843rm -f core conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010845LIBS=$ac_check_lib_save_LIBS
10846fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010848$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010849if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10851else
Lev Walkinaef10c32014-01-14 01:47:25 -080010852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010853$as_echo_n "checking for dld_link in -ldld... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010854if ${ac_cv_lib_dld_dld_link+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010855 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010856else
10857 ac_check_lib_save_LIBS=$LIBS
10858LIBS="-ldld $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010860/* end confdefs.h. */
10861
Lev Walkin27fd0b62007-08-27 23:57:45 +000010862/* Override any GCC internal prototype to avoid an error.
10863 Use char because int might match the return type of a GCC
10864 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010865#ifdef __cplusplus
10866extern "C"
10867#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010868char dld_link ();
10869int
10870main ()
10871{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010872return dld_link ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010873 ;
10874 return 0;
10875}
10876_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010877if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010878 ac_cv_lib_dld_dld_link=yes
10879else
Lev Walkinaef10c32014-01-14 01:47:25 -080010880 ac_cv_lib_dld_dld_link=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010881fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010882rm -f core conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010884LIBS=$ac_check_lib_save_LIBS
10885fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010887$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010888if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -070010889 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010890fi
10891
10892
10893fi
10894
10895
10896fi
10897
10898
10899fi
10900
10901
10902fi
10903
10904
10905fi
10906
10907 ;;
10908 esac
10909
10910 if test "x$lt_cv_dlopen" != xno; then
10911 enable_dlopen=yes
10912 else
10913 enable_dlopen=no
10914 fi
10915
10916 case $lt_cv_dlopen in
10917 dlopen)
10918 save_CPPFLAGS="$CPPFLAGS"
10919 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10920
10921 save_LDFLAGS="$LDFLAGS"
Lev Walkinfbf1d282007-12-03 14:58:39 +000010922 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010923
10924 save_LIBS="$LIBS"
10925 LIBS="$lt_cv_dlopen_libs $LIBS"
10926
Lev Walkinaef10c32014-01-14 01:47:25 -080010927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010928$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010929if ${lt_cv_dlopen_self+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010930 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010931else
10932 if test "$cross_compiling" = yes; then :
10933 lt_cv_dlopen_self=cross
10934else
10935 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10936 lt_status=$lt_dlunknown
Lev Walkin4da95cf2010-10-16 02:46:32 -070010937 cat > conftest.$ac_ext <<_LT_EOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010938#line $LINENO "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010939#include "confdefs.h"
10940
10941#if HAVE_DLFCN_H
10942#include <dlfcn.h>
10943#endif
10944
10945#include <stdio.h>
10946
10947#ifdef RTLD_GLOBAL
10948# define LT_DLGLOBAL RTLD_GLOBAL
10949#else
10950# ifdef DL_GLOBAL
10951# define LT_DLGLOBAL DL_GLOBAL
10952# else
10953# define LT_DLGLOBAL 0
10954# endif
10955#endif
10956
10957/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10958 find out it does not work in some platform. */
10959#ifndef LT_DLLAZY_OR_NOW
10960# ifdef RTLD_LAZY
10961# define LT_DLLAZY_OR_NOW RTLD_LAZY
10962# else
10963# ifdef DL_LAZY
10964# define LT_DLLAZY_OR_NOW DL_LAZY
10965# else
10966# ifdef RTLD_NOW
10967# define LT_DLLAZY_OR_NOW RTLD_NOW
10968# else
10969# ifdef DL_NOW
10970# define LT_DLLAZY_OR_NOW DL_NOW
10971# else
10972# define LT_DLLAZY_OR_NOW 0
10973# endif
10974# endif
10975# endif
10976# endif
10977#endif
10978
Lev Walkinaef10c32014-01-14 01:47:25 -080010979/* When -fvisbility=hidden is used, assume the code has been annotated
10980 correspondingly for the symbols needed. */
10981#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10982int fnord () __attribute__((visibility("default")));
Lev Walkin8e8b5482004-06-17 23:42:48 +000010983#endif
10984
Lev Walkinaef10c32014-01-14 01:47:25 -080010985int fnord () { return 42; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010986int main ()
10987{
10988 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10989 int status = $lt_dlunknown;
10990
10991 if (self)
10992 {
10993 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Lev Walkinaef10c32014-01-14 01:47:25 -080010994 else
10995 {
10996 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10997 else puts (dlerror ());
10998 }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010999 /* dlclose (self); */
11000 }
Lev Walkinfbf1d282007-12-03 14:58:39 +000011001 else
11002 puts (dlerror ());
Lev Walkin8e8b5482004-06-17 23:42:48 +000011003
Lev Walkinaef10c32014-01-14 01:47:25 -080011004 return status;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011005}
Lev Walkin4da95cf2010-10-16 02:46:32 -070011006_LT_EOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011008 (eval $ac_link) 2>&5
11009 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080011010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11011 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000011012 (./conftest; exit; ) >&5 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +000011013 lt_status=$?
11014 case x$lt_status in
11015 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11016 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000011017 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011018 esac
11019 else :
11020 # compilation failed
11021 lt_cv_dlopen_self=no
11022 fi
11023fi
11024rm -fr conftest*
11025
11026
11027fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011029$as_echo "$lt_cv_dlopen_self" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011030
11031 if test "x$lt_cv_dlopen_self" = xyes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000011032 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Lev Walkinaef10c32014-01-14 01:47:25 -080011033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011034$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011035if ${lt_cv_dlopen_self_static+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011036 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000011037else
11038 if test "$cross_compiling" = yes; then :
11039 lt_cv_dlopen_self_static=cross
11040else
11041 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11042 lt_status=$lt_dlunknown
Lev Walkin4da95cf2010-10-16 02:46:32 -070011043 cat > conftest.$ac_ext <<_LT_EOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011044#line $LINENO "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000011045#include "confdefs.h"
11046
11047#if HAVE_DLFCN_H
11048#include <dlfcn.h>
11049#endif
11050
11051#include <stdio.h>
11052
11053#ifdef RTLD_GLOBAL
11054# define LT_DLGLOBAL RTLD_GLOBAL
11055#else
11056# ifdef DL_GLOBAL
11057# define LT_DLGLOBAL DL_GLOBAL
11058# else
11059# define LT_DLGLOBAL 0
11060# endif
11061#endif
11062
11063/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11064 find out it does not work in some platform. */
11065#ifndef LT_DLLAZY_OR_NOW
11066# ifdef RTLD_LAZY
11067# define LT_DLLAZY_OR_NOW RTLD_LAZY
11068# else
11069# ifdef DL_LAZY
11070# define LT_DLLAZY_OR_NOW DL_LAZY
11071# else
11072# ifdef RTLD_NOW
11073# define LT_DLLAZY_OR_NOW RTLD_NOW
11074# else
11075# ifdef DL_NOW
11076# define LT_DLLAZY_OR_NOW DL_NOW
11077# else
11078# define LT_DLLAZY_OR_NOW 0
11079# endif
11080# endif
11081# endif
11082# endif
11083#endif
11084
Lev Walkinaef10c32014-01-14 01:47:25 -080011085/* When -fvisbility=hidden is used, assume the code has been annotated
11086 correspondingly for the symbols needed. */
11087#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11088int fnord () __attribute__((visibility("default")));
Lev Walkin8e8b5482004-06-17 23:42:48 +000011089#endif
11090
Lev Walkinaef10c32014-01-14 01:47:25 -080011091int fnord () { return 42; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011092int main ()
11093{
11094 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11095 int status = $lt_dlunknown;
11096
11097 if (self)
11098 {
11099 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Lev Walkinaef10c32014-01-14 01:47:25 -080011100 else
11101 {
11102 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11103 else puts (dlerror ());
11104 }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011105 /* dlclose (self); */
11106 }
Lev Walkinfbf1d282007-12-03 14:58:39 +000011107 else
11108 puts (dlerror ());
Lev Walkin8e8b5482004-06-17 23:42:48 +000011109
Lev Walkinaef10c32014-01-14 01:47:25 -080011110 return status;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011111}
Lev Walkin4da95cf2010-10-16 02:46:32 -070011112_LT_EOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011114 (eval $ac_link) 2>&5
11115 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080011116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11117 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000011118 (./conftest; exit; ) >&5 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +000011119 lt_status=$?
11120 case x$lt_status in
11121 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11122 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000011123 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011124 esac
11125 else :
11126 # compilation failed
11127 lt_cv_dlopen_self_static=no
11128 fi
11129fi
11130rm -fr conftest*
11131
11132
11133fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011135$as_echo "$lt_cv_dlopen_self_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011136 fi
11137
11138 CPPFLAGS="$save_CPPFLAGS"
11139 LDFLAGS="$save_LDFLAGS"
11140 LIBS="$save_LIBS"
11141 ;;
11142 esac
11143
11144 case $lt_cv_dlopen_self in
11145 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11146 *) enable_dlopen_self=unknown ;;
11147 esac
11148
11149 case $lt_cv_dlopen_self_static in
11150 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11151 *) enable_dlopen_self_static=unknown ;;
11152 esac
11153fi
11154
11155
Lev Walkin8e8b5482004-06-17 23:42:48 +000011156
Lev Walkin8e8b5482004-06-17 23:42:48 +000011157
Lev Walkin8e8b5482004-06-17 23:42:48 +000011158
Lev Walkin8e8b5482004-06-17 23:42:48 +000011159
Lev Walkin8e8b5482004-06-17 23:42:48 +000011160
Lev Walkin8e8b5482004-06-17 23:42:48 +000011161
Lev Walkin8e8b5482004-06-17 23:42:48 +000011162
Lev Walkin8e8b5482004-06-17 23:42:48 +000011163
Lev Walkin8e8b5482004-06-17 23:42:48 +000011164
Lev Walkin8e8b5482004-06-17 23:42:48 +000011165
Lev Walkin8e8b5482004-06-17 23:42:48 +000011166
Lev Walkin8e8b5482004-06-17 23:42:48 +000011167
Lev Walkin8e8b5482004-06-17 23:42:48 +000011168
Lev Walkin8e8b5482004-06-17 23:42:48 +000011169
Lev Walkin8e8b5482004-06-17 23:42:48 +000011170
Lev Walkin4da95cf2010-10-16 02:46:32 -070011171striplib=
11172old_striplib=
Lev Walkinaef10c32014-01-14 01:47:25 -080011173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011174$as_echo_n "checking whether stripping libraries is possible... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070011175if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11176 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11177 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Lev Walkinaef10c32014-01-14 01:47:25 -080011178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011179$as_echo "yes" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070011180else
11181# FIXME - insert some real tests, host_os isn't really good enough
Lev Walkin8e8b5482004-06-17 23:42:48 +000011182 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -070011183 darwin*)
11184 if test -n "$STRIP" ; then
11185 striplib="$STRIP -x"
11186 old_striplib="$STRIP -S"
Lev Walkinaef10c32014-01-14 01:47:25 -080011187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011188$as_echo "yes" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011189 else
Lev Walkinaef10c32014-01-14 01:47:25 -080011190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011191$as_echo "no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011192 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000011193 ;;
11194 *)
Lev Walkinaef10c32014-01-14 01:47:25 -080011195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011196$as_echo "no" >&6; }
Lev Walkinfbf1d282007-12-03 14:58:39 +000011197 ;;
11198 esac
Lev Walkinfbf1d282007-12-03 14:58:39 +000011199fi
11200
11201
Lev Walkin8e8b5482004-06-17 23:42:48 +000011202
Lev Walkin8e8b5482004-06-17 23:42:48 +000011203
Lev Walkin8e8b5482004-06-17 23:42:48 +000011204
11205
Lev Walkin8e8b5482004-06-17 23:42:48 +000011206
Lev Walkin8e8b5482004-06-17 23:42:48 +000011207
Lev Walkin8e8b5482004-06-17 23:42:48 +000011208
Lev Walkin8e8b5482004-06-17 23:42:48 +000011209
Lev Walkin8e8b5482004-06-17 23:42:48 +000011210
Lev Walkin8e8b5482004-06-17 23:42:48 +000011211
Lev Walkin4da95cf2010-10-16 02:46:32 -070011212 # Report which library types will actually be built
Lev Walkinaef10c32014-01-14 01:47:25 -080011213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011214$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011216$as_echo "$can_build_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011217
Lev Walkinaef10c32014-01-14 01:47:25 -080011218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011219$as_echo_n "checking whether to build shared libraries... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070011220 test "$can_build_shared" = "no" && enable_shared=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000011221
Lev Walkin4da95cf2010-10-16 02:46:32 -070011222 # On AIX, shared libraries and static libraries use the same namespace, and
11223 # are all built from PIC.
11224 case $host_os in
11225 aix3*)
Lev Walkinfbf1d282007-12-03 14:58:39 +000011226 test "$enable_shared" = yes && enable_static=no
Lev Walkin4da95cf2010-10-16 02:46:32 -070011227 if test -n "$RANLIB"; then
11228 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11229 postinstall_cmds='$RANLIB $lib'
11230 fi
11231 ;;
11232
11233 aix[4-9]*)
11234 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11235 test "$enable_shared" = yes && enable_static=no
11236 fi
11237 ;;
11238 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080011239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011240$as_echo "$enable_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011241
Lev Walkinaef10c32014-01-14 01:47:25 -080011242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011243$as_echo_n "checking whether to build static libraries... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070011244 # Make sure either enable_shared or enable_static is yes.
11245 test "$enable_shared" = yes || enable_static=yes
Lev Walkinaef10c32014-01-14 01:47:25 -080011246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011247$as_echo "$enable_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011248
Lev Walkin8e8b5482004-06-17 23:42:48 +000011249
Lev Walkin8e8b5482004-06-17 23:42:48 +000011250
Lev Walkin27fd0b62007-08-27 23:57:45 +000011251
Lev Walkin8e8b5482004-06-17 23:42:48 +000011252fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000011253ac_ext=c
11254ac_cpp='$CPP $CPPFLAGS'
11255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11257ac_compiler_gnu=$ac_cv_c_compiler_gnu
11258
11259CC="$lt_save_CC"
11260
Lev Walkin8e8b5482004-06-17 23:42:48 +000011261
Lev Walkin8e8b5482004-06-17 23:42:48 +000011262
11263
Lev Walkin8e8b5482004-06-17 23:42:48 +000011264
Lev Walkin8e8b5482004-06-17 23:42:48 +000011265
Lev Walkin8e8b5482004-06-17 23:42:48 +000011266
Lev Walkin8e8b5482004-06-17 23:42:48 +000011267
Lev Walkin8e8b5482004-06-17 23:42:48 +000011268
Lev Walkin8e8b5482004-06-17 23:42:48 +000011269
Lev Walkinfbf1d282007-12-03 14:58:39 +000011270
Lev Walkin8e8b5482004-06-17 23:42:48 +000011271
11272
Lev Walkin4da95cf2010-10-16 02:46:32 -070011273 ac_config_commands="$ac_config_commands libtool"
Lev Walkinfbf1d282007-12-03 14:58:39 +000011274
Lev Walkinfbf1d282007-12-03 14:58:39 +000011275
11276
Lev Walkinfbf1d282007-12-03 14:58:39 +000011277
Lev Walkin4da95cf2010-10-16 02:46:32 -070011278# Only expand once:
Lev Walkin8e8b5482004-06-17 23:42:48 +000011279
Lev Walkinf15320b2004-06-03 03:38:44 +000011280
11281
Lev Walkinf15320b2004-06-03 03:38:44 +000011282ac_ext=c
11283ac_cpp='$CPP $CPPFLAGS'
11284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11286ac_compiler_gnu=$ac_cv_c_compiler_gnu
11287if test -n "$ac_tool_prefix"; then
11288 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11289set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011291$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011292if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011293 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011294else
11295 if test -n "$CC"; then
11296 ac_cv_prog_CC="$CC" # Let the user override the test.
11297else
11298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299for as_dir in $PATH
11300do
11301 IFS=$as_save_IFS
11302 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011303 for ac_exec_ext in '' $ac_executable_extensions; do
11304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011305 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Lev Walkinaef10c32014-01-14 01:47:25 -080011306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011307 break 2
11308 fi
11309done
Lev Walkinaef10c32014-01-14 01:47:25 -080011310 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011311IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011312
11313fi
11314fi
11315CC=$ac_cv_prog_CC
11316if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011318$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011319else
Lev Walkinaef10c32014-01-14 01:47:25 -080011320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011321$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011322fi
11323
Lev Walkin27fd0b62007-08-27 23:57:45 +000011324
Lev Walkinf15320b2004-06-03 03:38:44 +000011325fi
11326if test -z "$ac_cv_prog_CC"; then
11327 ac_ct_CC=$CC
11328 # Extract the first word of "gcc", so it can be a program name with args.
11329set dummy gcc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011331$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011332if ${ac_cv_prog_ac_ct_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011333 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011334else
11335 if test -n "$ac_ct_CC"; then
11336 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11337else
11338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11339for as_dir in $PATH
11340do
11341 IFS=$as_save_IFS
11342 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011343 for ac_exec_ext in '' $ac_executable_extensions; do
11344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011345 ac_cv_prog_ac_ct_CC="gcc"
Lev Walkinaef10c32014-01-14 01:47:25 -080011346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011347 break 2
11348 fi
11349done
Lev Walkinaef10c32014-01-14 01:47:25 -080011350 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011351IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011352
11353fi
11354fi
11355ac_ct_CC=$ac_cv_prog_ac_ct_CC
11356if test -n "$ac_ct_CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011358$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011359else
Lev Walkinaef10c32014-01-14 01:47:25 -080011360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011361$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011362fi
11363
Lev Walkin27fd0b62007-08-27 23:57:45 +000011364 if test "x$ac_ct_CC" = x; then
11365 CC=""
11366 else
11367 case $cross_compiling:$ac_tool_warned in
11368yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -080011369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000011371ac_tool_warned=yes ;;
11372esac
11373 CC=$ac_ct_CC
11374 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011375else
11376 CC="$ac_cv_prog_CC"
11377fi
11378
11379if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011380 if test -n "$ac_tool_prefix"; then
11381 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Lev Walkinf15320b2004-06-03 03:38:44 +000011382set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011384$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011385if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011386 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011387else
11388 if test -n "$CC"; then
11389 ac_cv_prog_CC="$CC" # Let the user override the test.
11390else
11391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392for as_dir in $PATH
11393do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011398 ac_cv_prog_CC="${ac_tool_prefix}cc"
Lev Walkinaef10c32014-01-14 01:47:25 -080011399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011400 break 2
11401 fi
11402done
Lev Walkinaef10c32014-01-14 01:47:25 -080011403 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011404IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011405
11406fi
11407fi
11408CC=$ac_cv_prog_CC
11409if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011411$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011412else
Lev Walkinaef10c32014-01-14 01:47:25 -080011413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011414$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011415fi
11416
Lev Walkin27fd0b62007-08-27 23:57:45 +000011417
Lev Walkinf15320b2004-06-03 03:38:44 +000011418 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011419fi
11420if test -z "$CC"; then
11421 # Extract the first word of "cc", so it can be a program name with args.
11422set dummy cc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011424$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011425if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011426 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011427else
11428 if test -n "$CC"; then
11429 ac_cv_prog_CC="$CC" # Let the user override the test.
11430else
11431 ac_prog_rejected=no
11432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433for as_dir in $PATH
11434do
11435 IFS=$as_save_IFS
11436 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011437 for ac_exec_ext in '' $ac_executable_extensions; do
11438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011439 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11440 ac_prog_rejected=yes
11441 continue
11442 fi
11443 ac_cv_prog_CC="cc"
Lev Walkinaef10c32014-01-14 01:47:25 -080011444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011445 break 2
11446 fi
11447done
Lev Walkinaef10c32014-01-14 01:47:25 -080011448 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011449IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011450
11451if test $ac_prog_rejected = yes; then
11452 # We found a bogon in the path, so make sure we never use it.
11453 set dummy $ac_cv_prog_CC
11454 shift
11455 if test $# != 0; then
11456 # We chose a different compiler from the bogus one.
11457 # However, it has the same basename, so the bogon will be chosen
11458 # first if we set CC to just the basename; use the full file name.
11459 shift
11460 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11461 fi
11462fi
11463fi
11464fi
11465CC=$ac_cv_prog_CC
11466if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011468$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011469else
Lev Walkinaef10c32014-01-14 01:47:25 -080011470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011471$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011472fi
11473
Lev Walkin27fd0b62007-08-27 23:57:45 +000011474
Lev Walkinf15320b2004-06-03 03:38:44 +000011475fi
11476if test -z "$CC"; then
11477 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011478 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000011479 do
11480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11481set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011483$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011484if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011485 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011486else
11487 if test -n "$CC"; then
11488 ac_cv_prog_CC="$CC" # Let the user override the test.
11489else
11490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491for as_dir in $PATH
11492do
11493 IFS=$as_save_IFS
11494 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011497 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -080011498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011499 break 2
11500 fi
11501done
Lev Walkinaef10c32014-01-14 01:47:25 -080011502 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011503IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011504
11505fi
11506fi
11507CC=$ac_cv_prog_CC
11508if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011510$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011511else
Lev Walkinaef10c32014-01-14 01:47:25 -080011512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011513$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011514fi
11515
Lev Walkin27fd0b62007-08-27 23:57:45 +000011516
Lev Walkinf15320b2004-06-03 03:38:44 +000011517 test -n "$CC" && break
11518 done
11519fi
11520if test -z "$CC"; then
11521 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +000011522 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000011523do
11524 # Extract the first word of "$ac_prog", so it can be a program name with args.
11525set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011527$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011528if ${ac_cv_prog_ac_ct_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011529 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011530else
11531 if test -n "$ac_ct_CC"; then
11532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11533else
11534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11535for as_dir in $PATH
11536do
11537 IFS=$as_save_IFS
11538 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011539 for ac_exec_ext in '' $ac_executable_extensions; do
11540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011541 ac_cv_prog_ac_ct_CC="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -080011542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011543 break 2
11544 fi
11545done
Lev Walkinaef10c32014-01-14 01:47:25 -080011546 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011547IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011548
11549fi
11550fi
11551ac_ct_CC=$ac_cv_prog_ac_ct_CC
11552if test -n "$ac_ct_CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011554$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011555else
Lev Walkinaef10c32014-01-14 01:47:25 -080011556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011557$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011558fi
11559
Lev Walkin27fd0b62007-08-27 23:57:45 +000011560
Lev Walkinf15320b2004-06-03 03:38:44 +000011561 test -n "$ac_ct_CC" && break
11562done
11563
Lev Walkin27fd0b62007-08-27 23:57:45 +000011564 if test "x$ac_ct_CC" = x; then
11565 CC=""
11566 else
11567 case $cross_compiling:$ac_tool_warned in
11568yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -080011569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000011571ac_tool_warned=yes ;;
11572esac
11573 CC=$ac_ct_CC
11574 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011575fi
11576
11577fi
11578
11579
Lev Walkinaef10c32014-01-14 01:47:25 -080011580test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -080011582as_fn_error $? "no acceptable C compiler found in \$PATH
11583See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011584
11585# Provide some information about the compiler.
Lev Walkinaef10c32014-01-14 01:47:25 -080011586$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011587set X $ac_compile
11588ac_compiler=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011589for ac_option in --version -v -V -qversion; do
11590 { { ac_try="$ac_compiler $ac_option >&5"
Lev Walkin27fd0b62007-08-27 23:57:45 +000011591case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11594esac
Lev Walkinaef10c32014-01-14 01:47:25 -080011595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11596$as_echo "$ac_try_echo"; } >&5
11597 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Lev Walkinf15320b2004-06-03 03:38:44 +000011598 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080011599 if test -s conftest.err; then
11600 sed '10a\
11601... rest of stderr output deleted ...
11602 10q' conftest.err >conftest.er1
11603 cat conftest.er1 >&5
11604 fi
11605 rm -f conftest.er1 conftest.err
11606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11607 test $ac_status = 0; }
11608done
Lev Walkinf15320b2004-06-03 03:38:44 +000011609
Lev Walkinaef10c32014-01-14 01:47:25 -080011610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011611$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011612if ${ac_cv_c_compiler_gnu+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011613 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011614else
Lev Walkinaef10c32014-01-14 01:47:25 -080011615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011616/* end confdefs.h. */
11617
11618int
11619main ()
11620{
11621#ifndef __GNUC__
11622 choke me
11623#endif
11624
11625 ;
11626 return 0;
11627}
11628_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011629if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000011630 ac_compiler_gnu=yes
11631else
Lev Walkinaef10c32014-01-14 01:47:25 -080011632 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +000011633fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011635ac_cv_c_compiler_gnu=$ac_compiler_gnu
11636
11637fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011639$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11640if test $ac_compiler_gnu = yes; then
11641 GCC=yes
11642else
11643 GCC=
11644fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011645ac_test_CFLAGS=${CFLAGS+set}
11646ac_save_CFLAGS=$CFLAGS
Lev Walkinaef10c32014-01-14 01:47:25 -080011647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011648$as_echo_n "checking whether $CC accepts -g... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011649if ${ac_cv_prog_cc_g+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011650 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011651else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011652 ac_save_c_werror_flag=$ac_c_werror_flag
11653 ac_c_werror_flag=yes
11654 ac_cv_prog_cc_g=no
11655 CFLAGS="-g"
Lev Walkinaef10c32014-01-14 01:47:25 -080011656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011657/* end confdefs.h. */
11658
11659int
11660main ()
11661{
11662
11663 ;
11664 return 0;
11665}
11666_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011667if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000011668 ac_cv_prog_cc_g=yes
11669else
Lev Walkinaef10c32014-01-14 01:47:25 -080011670 CFLAGS=""
11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011672/* end confdefs.h. */
11673
11674int
11675main ()
11676{
11677
11678 ;
11679 return 0;
11680}
11681_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011682if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000011683
Lev Walkinaef10c32014-01-14 01:47:25 -080011684else
11685 ac_c_werror_flag=$ac_save_c_werror_flag
Lev Walkin27fd0b62007-08-27 23:57:45 +000011686 CFLAGS="-g"
Lev Walkinaef10c32014-01-14 01:47:25 -080011687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011688/* end confdefs.h. */
11689
11690int
11691main ()
11692{
11693
11694 ;
11695 return 0;
11696}
11697_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011698if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000011699 ac_cv_prog_cc_g=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000011700fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011702fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11704fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11706 ac_c_werror_flag=$ac_save_c_werror_flag
11707fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011709$as_echo "$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011710if test "$ac_test_CFLAGS" = set; then
11711 CFLAGS=$ac_save_CFLAGS
11712elif test $ac_cv_prog_cc_g = yes; then
11713 if test "$GCC" = yes; then
11714 CFLAGS="-g -O2"
11715 else
11716 CFLAGS="-g"
11717 fi
11718else
11719 if test "$GCC" = yes; then
11720 CFLAGS="-O2"
11721 else
11722 CFLAGS=
11723 fi
11724fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011726$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011727if ${ac_cv_prog_cc_c89+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011728 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011729else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011730 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +000011731ac_save_CC=$CC
Lev Walkinaef10c32014-01-14 01:47:25 -080011732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011733/* end confdefs.h. */
11734#include <stdarg.h>
11735#include <stdio.h>
Lev Walkinaef10c32014-01-14 01:47:25 -080011736struct stat;
Lev Walkinf15320b2004-06-03 03:38:44 +000011737/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11738struct buf { int x; };
11739FILE * (*rcsopen) (struct buf *, struct stat *, int);
11740static char *e (p, i)
11741 char **p;
11742 int i;
11743{
11744 return p[i];
11745}
11746static char *f (char * (*g) (char **, int), char **p, ...)
11747{
11748 char *s;
11749 va_list v;
11750 va_start (v,p);
11751 s = g (p, va_arg (v,int));
11752 va_end (v);
11753 return s;
11754}
Lev Walkin8e8b5482004-06-17 23:42:48 +000011755
11756/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11757 function prototypes and stuff, but not '\xHH' hex character constants.
11758 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +000011759 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +000011760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11761 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +000011762 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000011763int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11764
Lev Walkin27fd0b62007-08-27 23:57:45 +000011765/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11766 inside strings and character constants. */
11767#define FOO(x) 'x'
11768int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11769
Lev Walkinf15320b2004-06-03 03:38:44 +000011770int test (int i, double x);
11771struct s1 {int (*f) (int a);};
11772struct s2 {int (*f) (double a);};
11773int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11774int argc;
11775char **argv;
11776int
11777main ()
11778{
11779return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11780 ;
11781 return 0;
11782}
11783_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011784for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11785 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +000011786do
11787 CC="$ac_save_CC $ac_arg"
Lev Walkinaef10c32014-01-14 01:47:25 -080011788 if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000011789 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +000011790fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011791rm -f core conftest.err conftest.$ac_objext
11792 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +000011793done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011794rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011795CC=$ac_save_CC
11796
11797fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011798# AC_CACHE_VAL
11799case "x$ac_cv_prog_cc_c89" in
11800 x)
Lev Walkinaef10c32014-01-14 01:47:25 -080011801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011802$as_echo "none needed" >&6; } ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000011803 xno)
Lev Walkinaef10c32014-01-14 01:47:25 -080011804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011805$as_echo "unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011806 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +000011807 CC="$CC $ac_cv_prog_cc_c89"
Lev Walkinaef10c32014-01-14 01:47:25 -080011808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011809$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011810esac
Lev Walkinaef10c32014-01-14 01:47:25 -080011811if test "x$ac_cv_prog_cc_c89" != xno; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000011812
Lev Walkinaef10c32014-01-14 01:47:25 -080011813fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011814
Lev Walkinf15320b2004-06-03 03:38:44 +000011815ac_ext=c
11816ac_cpp='$CPP $CPPFLAGS'
11817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11819ac_compiler_gnu=$ac_cv_c_compiler_gnu
11820
11821depcc="$CC" am_compiler_list=
11822
Lev Walkinaef10c32014-01-14 01:47:25 -080011823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011824$as_echo_n "checking dependency style of $depcc... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011825if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011826 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011827else
11828 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11829 # We make a subdir and do the tests there. Otherwise we can end up
11830 # making bogus files that we don't know about and never remove. For
11831 # instance it was reported that on HP-UX the gcc test will end up
11832 # making a dummy file named `D' -- because `-MD' means `put the output
11833 # in D'.
11834 mkdir conftest.dir
11835 # Copy depcomp to subdir because otherwise we won't find it if we're
11836 # using a relative directory.
11837 cp "$am_depcomp" conftest.dir
11838 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +000011839 # We will build objects and dependencies in a subdirectory because
11840 # it helps to detect inapplicable dependency modes. For instance
11841 # both Tru64's cc and ICC support -MD to output dependencies as a
11842 # side effect of compilation, but ICC will put the dependencies in
11843 # the current directory while Tru64 will put them in the object
11844 # directory.
11845 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +000011846
11847 am_cv_CC_dependencies_compiler_type=none
11848 if test "$am_compiler_list" = ""; then
11849 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11850 fi
Lev Walkinb3751942012-09-02 19:36:47 -070011851 am__universal=false
11852 case " $depcc " in #(
11853 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11854 esac
11855
Lev Walkinf15320b2004-06-03 03:38:44 +000011856 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000011857 # Setup a source with many dependencies, because some compilers
11858 # like to wrap large dependency lists on column 80 (with \), and
11859 # we should not choose a depcomp mode which is confused by this.
11860 #
Lev Walkinf15320b2004-06-03 03:38:44 +000011861 # We need to recreate these files for each test, as the compiler may
11862 # overwrite some of them when testing with obscure command lines.
11863 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +000011864 : > sub/conftest.c
11865 for i in 1 2 3 4 5 6; do
11866 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11867 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11868 # Solaris 8's {/usr,}/bin/sh.
11869 touch sub/conftst$i.h
11870 done
11871 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +000011872
Lev Walkinb3751942012-09-02 19:36:47 -070011873 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11874 # mode. It turns out that the SunPro C++ compiler does not properly
11875 # handle `-M -o', and we need to detect this. Also, some Intel
11876 # versions had trouble with output in subdirs
11877 am__obj=sub/conftest.${OBJEXT-o}
11878 am__minus_obj="-o $am__obj"
Lev Walkinf15320b2004-06-03 03:38:44 +000011879 case $depmode in
Lev Walkinb3751942012-09-02 19:36:47 -070011880 gcc)
11881 # This depmode causes a compiler race in universal mode.
11882 test "$am__universal" = false || continue
11883 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011884 nosideeffect)
11885 # after this tag, mechanisms are not by side-effect, so they'll
11886 # only be used when explicitly requested
11887 if test "x$enable_dependency_tracking" = xyes; then
11888 continue
11889 else
11890 break
11891 fi
11892 ;;
Lev Walkinb3751942012-09-02 19:36:47 -070011893 msvisualcpp | msvcmsys)
11894 # This compiler won't grok `-c -o', but also, the minuso test has
11895 # not run yet. These depmodes are late enough in the game, and
11896 # so weak that their functioning should not be impacted.
11897 am__obj=conftest.${OBJEXT-o}
11898 am__minus_obj=
11899 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011900 none) break ;;
11901 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000011902 if depmode=$depmode \
Lev Walkinb3751942012-09-02 19:36:47 -070011903 source=sub/conftest.c object=$am__obj \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011904 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Lev Walkinb3751942012-09-02 19:36:47 -070011905 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011906 >/dev/null 2>conftest.err &&
Lev Walkin4c776e52010-11-08 02:07:31 -080011907 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000011908 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinb3751942012-09-02 19:36:47 -070011909 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +000011910 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000011911 # icc doesn't choke on unknown options, it will just issue warnings
11912 # or remarks (even with -Werror). So we grep stderr for any message
11913 # that says an option was ignored or not supported.
11914 # When given -MP, icc 7.0 and 7.1 complain thusly:
11915 # icc: Command line warning: ignoring option '-M'; no argument required
11916 # The diagnosis changed in icc 8.0:
11917 # icc: Command line remark: option '-MP' not supported
11918 if (grep 'ignoring option' conftest.err ||
11919 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11920 am_cv_CC_dependencies_compiler_type=$depmode
11921 break
11922 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011923 fi
11924 done
11925
11926 cd ..
11927 rm -rf conftest.dir
11928else
11929 am_cv_CC_dependencies_compiler_type=none
11930fi
11931
11932fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011934$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011935CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11936
Lev Walkin4c776e52010-11-08 02:07:31 -080011937 if
Lev Walkin8e8b5482004-06-17 23:42:48 +000011938 test "x$enable_dependency_tracking" != xno \
11939 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11940 am__fastdepCC_TRUE=
11941 am__fastdepCC_FALSE='#'
11942else
11943 am__fastdepCC_TRUE='#'
11944 am__fastdepCC_FALSE=
11945fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011946
11947
11948ac_ext=c
11949ac_cpp='$CPP $CPPFLAGS'
11950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11952ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkinaef10c32014-01-14 01:47:25 -080011953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011954$as_echo_n "checking how to run the C preprocessor... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011955# On Suns, sometimes $CPP names a directory.
11956if test -n "$CPP" && test -d "$CPP"; then
11957 CPP=
11958fi
11959if test -z "$CPP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011960 if ${ac_cv_prog_CPP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011961 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011962else
11963 # Double quotes because CPP needs to be expanded
11964 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11965 do
11966 ac_preproc_ok=false
11967for ac_c_preproc_warn_flag in '' yes
11968do
11969 # Use a header file that comes with gcc, so configuring glibc
11970 # with a fresh cross-compiler works.
11971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11972 # <limits.h> exists even on freestanding compilers.
11973 # On the NeXT, cc -E runs the code through the compiler's parser,
11974 # not just through cpp. "Syntax error" is here to catch this case.
Lev Walkinaef10c32014-01-14 01:47:25 -080011975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011976/* end confdefs.h. */
11977#ifdef __STDC__
11978# include <limits.h>
11979#else
11980# include <assert.h>
11981#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000011982 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000011983_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011984if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000011985
Lev Walkinaef10c32014-01-14 01:47:25 -080011986else
Lev Walkinf15320b2004-06-03 03:38:44 +000011987 # Broken: fails on valid input.
11988continue
11989fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011990rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011991
Lev Walkin27fd0b62007-08-27 23:57:45 +000011992 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000011993 # can be detected and how.
Lev Walkinaef10c32014-01-14 01:47:25 -080011994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011995/* end confdefs.h. */
11996#include <ac_nonexistent.h>
11997_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011998if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000011999 # Broken: success on invalid input.
12000continue
12001else
Lev Walkinf15320b2004-06-03 03:38:44 +000012002 # Passes both tests.
12003ac_preproc_ok=:
12004break
12005fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012006rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012007
12008done
12009# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Lev Walkinaef10c32014-01-14 01:47:25 -080012010rm -f conftest.i conftest.err conftest.$ac_ext
12011if $ac_preproc_ok; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012012 break
12013fi
12014
12015 done
12016 ac_cv_prog_CPP=$CPP
12017
12018fi
12019 CPP=$ac_cv_prog_CPP
12020else
12021 ac_cv_prog_CPP=$CPP
12022fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012024$as_echo "$CPP" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012025ac_preproc_ok=false
12026for ac_c_preproc_warn_flag in '' yes
12027do
12028 # Use a header file that comes with gcc, so configuring glibc
12029 # with a fresh cross-compiler works.
12030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12031 # <limits.h> exists even on freestanding compilers.
12032 # On the NeXT, cc -E runs the code through the compiler's parser,
12033 # not just through cpp. "Syntax error" is here to catch this case.
Lev Walkinaef10c32014-01-14 01:47:25 -080012034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012035/* end confdefs.h. */
12036#ifdef __STDC__
12037# include <limits.h>
12038#else
12039# include <assert.h>
12040#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000012041 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000012042_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012043if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012044
Lev Walkinaef10c32014-01-14 01:47:25 -080012045else
Lev Walkinf15320b2004-06-03 03:38:44 +000012046 # Broken: fails on valid input.
12047continue
12048fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012049rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012050
Lev Walkin27fd0b62007-08-27 23:57:45 +000012051 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000012052 # can be detected and how.
Lev Walkinaef10c32014-01-14 01:47:25 -080012053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012054/* end confdefs.h. */
12055#include <ac_nonexistent.h>
12056_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012057if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012058 # Broken: success on invalid input.
12059continue
12060else
Lev Walkinf15320b2004-06-03 03:38:44 +000012061 # Passes both tests.
12062ac_preproc_ok=:
12063break
12064fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012065rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012066
12067done
12068# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Lev Walkinaef10c32014-01-14 01:47:25 -080012069rm -f conftest.i conftest.err conftest.$ac_ext
12070if $ac_preproc_ok; then :
12071
Lev Walkinf15320b2004-06-03 03:38:44 +000012072else
Lev Walkinaef10c32014-01-14 01:47:25 -080012073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -080012075as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12076See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012077fi
12078
12079ac_ext=c
12080ac_cpp='$CPP $CPPFLAGS'
12081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12083ac_compiler_gnu=$ac_cv_c_compiler_gnu
12084
Lev Walkinb3751942012-09-02 19:36:47 -070012085
Lev Walkinaef10c32014-01-14 01:47:25 -080012086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012087$as_echo_n "checking whether ln -s works... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012088LN_S=$as_ln_s
12089if test "$LN_S" = "ln -s"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012091$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012092else
Lev Walkinaef10c32014-01-14 01:47:25 -080012093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012094$as_echo "no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012095fi
12096
Lev Walkinaef10c32014-01-14 01:47:25 -080012097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012098$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12099set x ${MAKE-make}
12100ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Lev Walkinaef10c32014-01-14 01:47:25 -080012101if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012102 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012103else
12104 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012105SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +000012106all:
Lev Walkin27fd0b62007-08-27 23:57:45 +000012107 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +000012108_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012109# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +000012110case `${MAKE-make} -f conftest.make 2>/dev/null` in
12111 *@@@%%%=?*=@@@%%%*)
12112 eval ac_cv_prog_make_${ac_make}_set=yes;;
12113 *)
12114 eval ac_cv_prog_make_${ac_make}_set=no;;
12115esac
Lev Walkinf15320b2004-06-03 03:38:44 +000012116rm -f conftest.make
12117fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012118if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012120$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012121 SET_MAKE=
12122else
Lev Walkinaef10c32014-01-14 01:47:25 -080012123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012124$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012125 SET_MAKE="MAKE=${MAKE-make}"
12126fi
12127
12128for ac_prog in 'bison -y' byacc
12129do
12130 # Extract the first word of "$ac_prog", so it can be a program name with args.
12131set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080012132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012133$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012134if ${ac_cv_prog_YACC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012135 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012136else
12137 if test -n "$YACC"; then
12138 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12139else
12140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141for as_dir in $PATH
12142do
12143 IFS=$as_save_IFS
12144 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080012145 for ac_exec_ext in '' $ac_executable_extensions; do
12146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012147 ac_cv_prog_YACC="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -080012148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012149 break 2
12150 fi
12151done
Lev Walkinaef10c32014-01-14 01:47:25 -080012152 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012153IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012154
12155fi
12156fi
12157YACC=$ac_cv_prog_YACC
12158if test -n "$YACC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012160$as_echo "$YACC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012161else
Lev Walkinaef10c32014-01-14 01:47:25 -080012162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012163$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012164fi
12165
Lev Walkin27fd0b62007-08-27 23:57:45 +000012166
Lev Walkinf15320b2004-06-03 03:38:44 +000012167 test -n "$YACC" && break
12168done
12169test -n "$YACC" || YACC="yacc"
12170
Lev Walkinf15320b2004-06-03 03:38:44 +000012171for ac_prog in flex lex
12172do
12173 # Extract the first word of "$ac_prog", so it can be a program name with args.
12174set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080012175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012176$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012177if ${ac_cv_prog_LEX+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012178 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012179else
12180 if test -n "$LEX"; then
12181 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12182else
12183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184for as_dir in $PATH
12185do
12186 IFS=$as_save_IFS
12187 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080012188 for ac_exec_ext in '' $ac_executable_extensions; do
12189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012190 ac_cv_prog_LEX="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -080012191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012192 break 2
12193 fi
12194done
Lev Walkinaef10c32014-01-14 01:47:25 -080012195 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012196IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012197
12198fi
12199fi
12200LEX=$ac_cv_prog_LEX
12201if test -n "$LEX"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012203$as_echo "$LEX" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012204else
Lev Walkinaef10c32014-01-14 01:47:25 -080012205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012206$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012207fi
12208
Lev Walkin27fd0b62007-08-27 23:57:45 +000012209
Lev Walkinf15320b2004-06-03 03:38:44 +000012210 test -n "$LEX" && break
12211done
12212test -n "$LEX" || LEX=":"
12213
Lev Walkinf15320b2004-06-03 03:38:44 +000012214if test "x$LEX" != "x:"; then
Lev Walkin4c776e52010-11-08 02:07:31 -080012215 cat >conftest.l <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012216%%
Lev Walkin4c776e52010-11-08 02:07:31 -080012217a { ECHO; }
12218b { REJECT; }
12219c { yymore (); }
12220d { yyless (1); }
Lev Walkinaef10c32014-01-14 01:47:25 -080012221e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12222 yyless ((input () != 0)); }
Lev Walkin4c776e52010-11-08 02:07:31 -080012223f { unput (yytext[0]); }
12224. { BEGIN INITIAL; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012225%%
Lev Walkin4c776e52010-11-08 02:07:31 -080012226#ifdef YYTEXT_POINTER
12227extern char *yytext;
12228#endif
12229int
12230main (void)
12231{
12232 return ! yylex () + ! yywrap ();
12233}
Lev Walkinf15320b2004-06-03 03:38:44 +000012234_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012235{ { ac_try="$LEX conftest.l"
Lev Walkin27fd0b62007-08-27 23:57:45 +000012236case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12239esac
Lev Walkinaef10c32014-01-14 01:47:25 -080012240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12241$as_echo "$ac_try_echo"; } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012242 (eval "$LEX conftest.l") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012243 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080012244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12245 test $ac_status = 0; }
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012247$as_echo_n "checking lex output file root... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012248if ${ac_cv_prog_lex_root+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012249 $as_echo_n "(cached) " >&6
Lev Walkin4c776e52010-11-08 02:07:31 -080012250else
12251
Lev Walkinf15320b2004-06-03 03:38:44 +000012252if test -f lex.yy.c; then
12253 ac_cv_prog_lex_root=lex.yy
12254elif test -f lexyy.c; then
12255 ac_cv_prog_lex_root=lexyy
12256else
Lev Walkinaef10c32014-01-14 01:47:25 -080012257 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +000012258fi
12259fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012261$as_echo "$ac_cv_prog_lex_root" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012262LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12263
Lev Walkin4c776e52010-11-08 02:07:31 -080012264if test -z "${LEXLIB+set}"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012266$as_echo_n "checking lex library... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012267if ${ac_cv_lib_lex+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012268 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012269else
Lev Walkin4c776e52010-11-08 02:07:31 -080012270
12271 ac_save_LIBS=$LIBS
12272 ac_cv_lib_lex='none needed'
12273 for ac_lib in '' -lfl -ll; do
12274 LIBS="$ac_lib $ac_save_LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080012275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276/* end confdefs.h. */
Lev Walkinf15320b2004-06-03 03:38:44 +000012277`cat $LEX_OUTPUT_ROOT.c`
12278_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012279if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin4c776e52010-11-08 02:07:31 -080012280 ac_cv_lib_lex=$ac_lib
Lev Walkin4c776e52010-11-08 02:07:31 -080012281fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012282rm -f core conftest.err conftest.$ac_objext \
12283 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -080012284 test "$ac_cv_lib_lex" != 'none needed' && break
12285 done
12286 LIBS=$ac_save_LIBS
12287
12288fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012290$as_echo "$ac_cv_lib_lex" >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -080012291 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12292fi
12293
12294
Lev Walkinaef10c32014-01-14 01:47:25 -080012295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012296$as_echo_n "checking whether yytext is a pointer... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012297if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012298 $as_echo_n "(cached) " >&6
Lev Walkin4c776e52010-11-08 02:07:31 -080012299else
12300 # POSIX says lex can declare yytext either as a pointer or an array; the
12301# default is implementation-dependent. Figure out which it is, since
12302# not all implementations provide the %pointer and %array declarations.
12303ac_cv_prog_lex_yytext_pointer=no
12304ac_save_LIBS=$LIBS
12305LIBS="$LEXLIB $ac_save_LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080012306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307/* end confdefs.h. */
12308
12309 #define YYTEXT_POINTER 1
Lev Walkin4c776e52010-11-08 02:07:31 -080012310`cat $LEX_OUTPUT_ROOT.c`
12311_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012312if ac_fn_c_try_link "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012313 ac_cv_prog_lex_yytext_pointer=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000012314fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012315rm -f core conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012317LIBS=$ac_save_LIBS
Lev Walkinf15320b2004-06-03 03:38:44 +000012318
12319fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012321$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012322if test $ac_cv_prog_lex_yytext_pointer = yes; then
12323
Lev Walkinaef10c32014-01-14 01:47:25 -080012324$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +000012325
12326fi
Lev Walkin4c776e52010-11-08 02:07:31 -080012327rm -f conftest.l $LEX_OUTPUT_ROOT.c
Lev Walkinf15320b2004-06-03 03:38:44 +000012328
12329fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000012330if test "$LEX" = :; then
12331 LEX=${am_missing_run}flex
12332fi
Lev Walkinc10e06c2005-03-30 05:14:26 +000012333# Extract the first word of "ar", so it can be a program name with args.
12334set dummy ar; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080012335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012336$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012337if ${ac_cv_path_AR+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012338 $as_echo_n "(cached) " >&6
Lev Walkinc10e06c2005-03-30 05:14:26 +000012339else
12340 case $AR in
12341 [\\/]* | ?:[\\/]*)
12342 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12343 ;;
12344 *)
12345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346as_dummy="$PATH:/usr/ucb:/usr/ccs/bin"
12347for as_dir in $as_dummy
12348do
12349 IFS=$as_save_IFS
12350 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080012351 for ac_exec_ext in '' $ac_executable_extensions; do
12352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinc10e06c2005-03-30 05:14:26 +000012353 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -080012354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinc10e06c2005-03-30 05:14:26 +000012355 break 2
12356 fi
12357done
Lev Walkinaef10c32014-01-14 01:47:25 -080012358 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012359IFS=$as_save_IFS
Lev Walkinc10e06c2005-03-30 05:14:26 +000012360
12361 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
12362 ;;
12363esac
12364fi
12365AR=$ac_cv_path_AR
Lev Walkinc10e06c2005-03-30 05:14:26 +000012366if test -n "$AR"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012368$as_echo "$AR" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012369else
Lev Walkinaef10c32014-01-14 01:47:25 -080012370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012371$as_echo "no" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012372fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012373
Lev Walkin27fd0b62007-08-27 23:57:45 +000012374
Lev Walkin5f869d02004-08-23 10:41:38 +000012375case "$host_os" in
Lev Walkin79432302006-03-18 06:39:49 +000012376cygwin)
Lev Walkin59ec6ac2006-03-18 06:25:40 +000012377 case "$target" in
Lev Walkin5f869d02004-08-23 10:41:38 +000012378 *mingw*)
12379 CC="$CC -mno-cygwin"
12380 esac
12381 ;;
Lev Walkin59ec6ac2006-03-18 06:25:40 +000012382esac
12383
Lev Walkin27fd0b62007-08-27 23:57:45 +000012384# Check whether --enable-Werror was given.
Lev Walkinaef10c32014-01-14 01:47:25 -080012385if test "${enable_Werror+set}" = set; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000012386 enableval=$enable_Werror; enable_werror=$enableval
Lev Walkin04c23172004-09-26 14:18:32 +000012387else
12388 enable_werror=no
Lev Walkin27fd0b62007-08-27 23:57:45 +000012389fi
12390
Lev Walkin04c23172004-09-26 14:18:32 +000012391if test x$enable_werror = xyes; then
12392 ADD_CFLAGS="-Werror -W -Wpointer-arith"
12393fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012394
12395
Lev Walkinaef10c32014-01-14 01:47:25 -080012396case "$GCC$enable_werror" in
12397 yesno)
12398 CFLAGS="$CFLAGS -Wall" # Enable only if not going to fail with -Werror
12399 ;;
12400esac
Lev Walkinf15320b2004-06-03 03:38:44 +000012401case "$GCC" in
12402 yes)
12403 CFLAGS="$CFLAGS -Wall"
12404 CFLAGS="$CFLAGS -Wshadow"
12405 CFLAGS="$CFLAGS -Wcast-qual"
Lev Walkin93636742004-09-26 13:16:33 +000012406 CFLAGS="$CFLAGS -Wchar-subscripts"
Lev Walkinf15320b2004-06-03 03:38:44 +000012407 CFLAGS="$CFLAGS -Wmissing-prototypes"
12408 CFLAGS="$CFLAGS -Wmissing-declarations"
Lev Walkinaef10c32014-01-14 01:47:25 -080012409 # There are legitimate uses for these features
12410 CFLAGS="$CFLAGS -Wno-error=cast-align"
12411 CFLAGS="$CFLAGS -Wno-error=visibility"
12412 CFLAGS="$CFLAGS -Wno-error=parentheses-equality"
Lev Walkinf15320b2004-06-03 03:38:44 +000012413 ;;
12414esac
12415
12416
Lev Walkinaef10c32014-01-14 01:47:25 -080012417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012418$as_echo_n "checking for ANSI C header files... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012419if ${ac_cv_header_stdc+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012420 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012421else
Lev Walkinaef10c32014-01-14 01:47:25 -080012422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012423/* end confdefs.h. */
12424#include <stdlib.h>
12425#include <stdarg.h>
12426#include <string.h>
12427#include <float.h>
12428
12429int
12430main ()
12431{
12432
12433 ;
12434 return 0;
12435}
12436_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012437if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012438 ac_cv_header_stdc=yes
12439else
Lev Walkinaef10c32014-01-14 01:47:25 -080012440 ac_cv_header_stdc=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012441fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012443
12444if test $ac_cv_header_stdc = yes; then
12445 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Lev Walkinaef10c32014-01-14 01:47:25 -080012446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012447/* end confdefs.h. */
12448#include <string.h>
12449
12450_ACEOF
12451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Lev Walkinaef10c32014-01-14 01:47:25 -080012452 $EGREP "memchr" >/dev/null 2>&1; then :
12453
Lev Walkinf15320b2004-06-03 03:38:44 +000012454else
12455 ac_cv_header_stdc=no
12456fi
Lev Walkinb3751942012-09-02 19:36:47 -070012457rm -f conftest*
Lev Walkinf15320b2004-06-03 03:38:44 +000012458
12459fi
12460
12461if test $ac_cv_header_stdc = yes; then
12462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Lev Walkinaef10c32014-01-14 01:47:25 -080012463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012464/* end confdefs.h. */
12465#include <stdlib.h>
12466
12467_ACEOF
12468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Lev Walkinaef10c32014-01-14 01:47:25 -080012469 $EGREP "free" >/dev/null 2>&1; then :
12470
Lev Walkinf15320b2004-06-03 03:38:44 +000012471else
12472 ac_cv_header_stdc=no
12473fi
Lev Walkinb3751942012-09-02 19:36:47 -070012474rm -f conftest*
Lev Walkinf15320b2004-06-03 03:38:44 +000012475
12476fi
12477
12478if test $ac_cv_header_stdc = yes; then
12479 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Lev Walkinaef10c32014-01-14 01:47:25 -080012480 if test "$cross_compiling" = yes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012481 :
12482else
Lev Walkinaef10c32014-01-14 01:47:25 -080012483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012484/* end confdefs.h. */
12485#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +000012486#include <stdlib.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012487#if ((' ' & 0x0FF) == 0x020)
12488# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12489# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12490#else
12491# define ISLOWER(c) \
Lev Walkin8e8b5482004-06-17 23:42:48 +000012492 (('a' <= (c) && (c) <= 'i') \
12493 || ('j' <= (c) && (c) <= 'r') \
12494 || ('s' <= (c) && (c) <= 'z'))
Lev Walkinf15320b2004-06-03 03:38:44 +000012495# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12496#endif
12497
12498#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12499int
12500main ()
12501{
12502 int i;
12503 for (i = 0; i < 256; i++)
12504 if (XOR (islower (i), ISLOWER (i))
Lev Walkin8e8b5482004-06-17 23:42:48 +000012505 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +000012506 return 2;
12507 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000012508}
12509_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012510if ac_fn_c_try_run "$LINENO"; then :
12511
Lev Walkinf15320b2004-06-03 03:38:44 +000012512else
Lev Walkinaef10c32014-01-14 01:47:25 -080012513 ac_cv_header_stdc=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012514fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12516 conftest.$ac_objext conftest.beam conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012517fi
12518
Lev Walkinf15320b2004-06-03 03:38:44 +000012519fi
12520fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012522$as_echo "$ac_cv_header_stdc" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012523if test $ac_cv_header_stdc = yes; then
12524
Lev Walkinaef10c32014-01-14 01:47:25 -080012525$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +000012526
12527fi
12528
Lev Walkin79f54952004-08-13 16:58:19 +000012529for ac_header in sys/param.h
Lev Walkinaef10c32014-01-14 01:47:25 -080012530do :
12531 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
12532if test "x$ac_cv_header_sys_param_h" = xyes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012533 cat >>confdefs.h <<_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012534#define HAVE_SYS_PARAM_H 1
Lev Walkinf15320b2004-06-03 03:38:44 +000012535_ACEOF
12536
12537fi
12538
12539done
12540
12541
Lev Walkinaef10c32014-01-14 01:47:25 -080012542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012543$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012544if ${ac_cv_c_bigendian+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012545 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012546else
Lev Walkinb3751942012-09-02 19:36:47 -070012547 ac_cv_c_bigendian=unknown
12548 # See if we're dealing with a universal compiler.
Lev Walkinaef10c32014-01-14 01:47:25 -080012549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012550/* end confdefs.h. */
12551#ifndef __APPLE_CC__
12552 not a universal capable compiler
12553 #endif
12554 typedef int dummy;
12555
12556_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012557if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012558
12559 # Check for potential -arch flags. It is not universal unless
Lev Walkinaef10c32014-01-14 01:47:25 -080012560 # there are at least two -arch flags with different values.
12561 ac_arch=
12562 ac_prev=
12563 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12564 if test -n "$ac_prev"; then
12565 case $ac_word in
12566 i?86 | x86_64 | ppc | ppc64)
12567 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12568 ac_arch=$ac_word
12569 else
12570 ac_cv_c_bigendian=universal
12571 break
12572 fi
12573 ;;
12574 esac
12575 ac_prev=
12576 elif test "x$ac_word" = "x-arch"; then
12577 ac_prev=arch
12578 fi
12579 done
Lev Walkinb3751942012-09-02 19:36:47 -070012580fi
Lev Walkinb3751942012-09-02 19:36:47 -070012581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12582 if test $ac_cv_c_bigendian = unknown; then
12583 # See if sys/param.h defines the BYTE_ORDER macro.
Lev Walkinaef10c32014-01-14 01:47:25 -080012584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012585/* end confdefs.h. */
12586#include <sys/types.h>
Lev Walkinb3751942012-09-02 19:36:47 -070012587 #include <sys/param.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012588
12589int
12590main ()
12591{
Lev Walkinb3751942012-09-02 19:36:47 -070012592#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12593 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12594 && LITTLE_ENDIAN)
12595 bogus endian macros
12596 #endif
Lev Walkinf15320b2004-06-03 03:38:44 +000012597
12598 ;
12599 return 0;
12600}
12601_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012602if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012603 # It does; now see whether it defined to BIG_ENDIAN or not.
Lev Walkinaef10c32014-01-14 01:47:25 -080012604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012605/* end confdefs.h. */
12606#include <sys/types.h>
Lev Walkinb3751942012-09-02 19:36:47 -070012607 #include <sys/param.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012608
12609int
12610main ()
12611{
12612#if BYTE_ORDER != BIG_ENDIAN
Lev Walkinb3751942012-09-02 19:36:47 -070012613 not big endian
12614 #endif
Lev Walkinf15320b2004-06-03 03:38:44 +000012615
12616 ;
12617 return 0;
12618}
12619_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012620if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012621 ac_cv_c_bigendian=yes
12622else
Lev Walkinaef10c32014-01-14 01:47:25 -080012623 ac_cv_c_bigendian=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012624fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012626fi
Lev Walkinb3751942012-09-02 19:36:47 -070012627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628 fi
12629 if test $ac_cv_c_bigendian = unknown; then
12630 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Lev Walkinaef10c32014-01-14 01:47:25 -080012631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012632/* end confdefs.h. */
Lev Walkinb3751942012-09-02 19:36:47 -070012633#include <limits.h>
12634
Lev Walkinf15320b2004-06-03 03:38:44 +000012635int
12636main ()
12637{
Lev Walkinb3751942012-09-02 19:36:47 -070012638#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12639 bogus endian macros
12640 #endif
12641
Lev Walkinf15320b2004-06-03 03:38:44 +000012642 ;
12643 return 0;
12644}
12645_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012646if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012647 # It does; now see whether it defined to _BIG_ENDIAN or not.
Lev Walkinaef10c32014-01-14 01:47:25 -080012648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012649/* end confdefs.h. */
12650#include <limits.h>
12651
12652int
12653main ()
12654{
12655#ifndef _BIG_ENDIAN
12656 not big endian
12657 #endif
12658
12659 ;
12660 return 0;
12661}
12662_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012663if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012664 ac_cv_c_bigendian=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000012665else
Lev Walkinaef10c32014-01-14 01:47:25 -080012666 ac_cv_c_bigendian=no
Lev Walkinb3751942012-09-02 19:36:47 -070012667fi
Lev Walkinb3751942012-09-02 19:36:47 -070012668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012669fi
Lev Walkinb3751942012-09-02 19:36:47 -070012670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12671 fi
12672 if test $ac_cv_c_bigendian = unknown; then
12673 # Compile a test program.
Lev Walkinaef10c32014-01-14 01:47:25 -080012674 if test "$cross_compiling" = yes; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012675 # Try to guess by grepping values from an object file.
Lev Walkinaef10c32014-01-14 01:47:25 -080012676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012677/* end confdefs.h. */
12678short int ascii_mm[] =
12679 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12680 short int ascii_ii[] =
12681 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12682 int use_ascii (int i) {
12683 return ascii_mm[i] + ascii_ii[i];
12684 }
12685 short int ebcdic_ii[] =
12686 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12687 short int ebcdic_mm[] =
12688 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12689 int use_ebcdic (int i) {
12690 return ebcdic_mm[i] + ebcdic_ii[i];
12691 }
12692 extern int foo;
12693
12694int
12695main ()
12696{
12697return use_ascii (foo) == use_ebcdic (foo);
12698 ;
12699 return 0;
12700}
12701_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012702if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012703 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12704 ac_cv_c_bigendian=yes
12705 fi
12706 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12707 if test "$ac_cv_c_bigendian" = unknown; then
12708 ac_cv_c_bigendian=no
12709 else
12710 # finding both strings is unlikely to happen, but who knows?
12711 ac_cv_c_bigendian=unknown
12712 fi
12713 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012714fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012716else
Lev Walkinaef10c32014-01-14 01:47:25 -080012717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012718/* end confdefs.h. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000012719$ac_includes_default
Lev Walkinf15320b2004-06-03 03:38:44 +000012720int
12721main ()
12722{
Lev Walkin27fd0b62007-08-27 23:57:45 +000012723
Lev Walkinb3751942012-09-02 19:36:47 -070012724 /* Are we little or big endian? From Harbison&Steele. */
12725 union
12726 {
12727 long int l;
12728 char c[sizeof (long int)];
12729 } u;
12730 u.l = 1;
12731 return u.c[sizeof (long int) - 1] == 1;
Lev Walkin27fd0b62007-08-27 23:57:45 +000012732
12733 ;
12734 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000012735}
12736_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012737if ac_fn_c_try_run "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012738 ac_cv_c_bigendian=no
12739else
Lev Walkinaef10c32014-01-14 01:47:25 -080012740 ac_cv_c_bigendian=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000012741fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12743 conftest.$ac_objext conftest.beam conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012744fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012745
Lev Walkinb3751942012-09-02 19:36:47 -070012746 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012747fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012749$as_echo "$ac_cv_c_bigendian" >&6; }
12750 case $ac_cv_c_bigendian in #(
12751 yes)
Lev Walkinaef10c32014-01-14 01:47:25 -080012752 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Lev Walkinb3751942012-09-02 19:36:47 -070012753;; #(
12754 no)
12755 ;; #(
12756 universal)
Lev Walkinf15320b2004-06-03 03:38:44 +000012757
Lev Walkinaef10c32014-01-14 01:47:25 -080012758$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Lev Walkinb3751942012-09-02 19:36:47 -070012759
12760 ;; #(
12761 *)
Lev Walkinaef10c32014-01-14 01:47:25 -080012762 as_fn_error $? "unknown endianness
12763 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Lev Walkinb3751942012-09-02 19:36:47 -070012764 esac
12765
Lev Walkinaef10c32014-01-14 01:47:25 -080012766ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12767if test "x$ac_cv_type_off_t" = xyes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012768
Lev Walkinf15320b2004-06-03 03:38:44 +000012769else
12770
12771cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012772#define off_t long int
Lev Walkinf15320b2004-06-03 03:38:44 +000012773_ACEOF
12774
12775fi
12776
Lev Walkinaef10c32014-01-14 01:47:25 -080012777ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12778if test "x$ac_cv_type_size_t" = xyes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012779
Lev Walkinf15320b2004-06-03 03:38:44 +000012780else
12781
12782cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012783#define size_t unsigned int
Lev Walkinf15320b2004-06-03 03:38:44 +000012784_ACEOF
12785
12786fi
12787
Lev Walkinaef10c32014-01-14 01:47:25 -080012788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012789$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012790if ${ac_cv_struct_tm+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012791 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012792else
Lev Walkinaef10c32014-01-14 01:47:25 -080012793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012794/* end confdefs.h. */
12795#include <sys/types.h>
12796#include <time.h>
12797
12798int
12799main ()
12800{
Lev Walkin4c776e52010-11-08 02:07:31 -080012801struct tm tm;
12802 int *p = &tm.tm_sec;
Lev Walkinb3751942012-09-02 19:36:47 -070012803 return !p;
Lev Walkinf15320b2004-06-03 03:38:44 +000012804 ;
12805 return 0;
12806}
12807_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012808if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012809 ac_cv_struct_tm=time.h
12810else
Lev Walkinaef10c32014-01-14 01:47:25 -080012811 ac_cv_struct_tm=sys/time.h
Lev Walkinf15320b2004-06-03 03:38:44 +000012812fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012814fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012816$as_echo "$ac_cv_struct_tm" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012817if test $ac_cv_struct_tm = sys/time.h; then
12818
Lev Walkinaef10c32014-01-14 01:47:25 -080012819$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +000012820
12821fi
12822
Lev Walkinaef10c32014-01-14 01:47:25 -080012823ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
12824if test "x$ac_cv_type_intmax_t" = xyes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012825
Lev Walkinf15320b2004-06-03 03:38:44 +000012826else
12827
12828cat >>confdefs.h <<_ACEOF
12829#define intmax_t int64_t
12830_ACEOF
12831
12832fi
12833
12834
Lev Walkinaef10c32014-01-14 01:47:25 -080012835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012836$as_echo_n "checking for library containing getopt... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012837if ${ac_cv_search_getopt+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012838 $as_echo_n "(cached) " >&6
Lev Walkin058e2222007-12-04 00:27:38 +000012839else
12840 ac_func_search_save_LIBS=$LIBS
Lev Walkinaef10c32014-01-14 01:47:25 -080012841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin058e2222007-12-04 00:27:38 +000012842/* end confdefs.h. */
12843
12844/* Override any GCC internal prototype to avoid an error.
12845 Use char because int might match the return type of a GCC
12846 builtin and then its argument prototype would still apply. */
12847#ifdef __cplusplus
12848extern "C"
12849#endif
12850char getopt ();
12851int
12852main ()
12853{
12854return getopt ();
12855 ;
12856 return 0;
12857}
12858_ACEOF
12859for ac_lib in '' iberty; do
12860 if test -z "$ac_lib"; then
12861 ac_res="none required"
12862 else
12863 ac_res=-l$ac_lib
12864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12865 fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012866 if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin058e2222007-12-04 00:27:38 +000012867 ac_cv_search_getopt=$ac_res
Lev Walkin058e2222007-12-04 00:27:38 +000012868fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012869rm -f core conftest.err conftest.$ac_objext \
12870 conftest$ac_exeext
12871 if ${ac_cv_search_getopt+:} false; then :
Lev Walkin058e2222007-12-04 00:27:38 +000012872 break
12873fi
12874done
Lev Walkinaef10c32014-01-14 01:47:25 -080012875if ${ac_cv_search_getopt+:} false; then :
12876
Lev Walkin058e2222007-12-04 00:27:38 +000012877else
12878 ac_cv_search_getopt=no
12879fi
12880rm conftest.$ac_ext
12881LIBS=$ac_func_search_save_LIBS
12882fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012884$as_echo "$ac_cv_search_getopt" >&6; }
Lev Walkin058e2222007-12-04 00:27:38 +000012885ac_res=$ac_cv_search_getopt
Lev Walkinaef10c32014-01-14 01:47:25 -080012886if test "$ac_res" != no; then :
Lev Walkin058e2222007-12-04 00:27:38 +000012887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12888
12889fi
12890
12891
Lev Walkinf15320b2004-06-03 03:38:44 +000012892for ac_func in strtoimax strtoll
Lev Walkinaef10c32014-01-14 01:47:25 -080012893do :
12894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12895ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12896if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012897 cat >>confdefs.h <<_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070012898#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Lev Walkinf15320b2004-06-03 03:38:44 +000012899_ACEOF
12900
12901fi
12902done
12903
Lev Walkin49b0a3e2004-06-28 21:22:35 +000012904for ac_func in mergesort
Lev Walkinaef10c32014-01-14 01:47:25 -080012905do :
12906 ac_fn_c_check_func "$LINENO" "mergesort" "ac_cv_func_mergesort"
12907if test "x$ac_cv_func_mergesort" = xyes; then :
Lev Walkin49b0a3e2004-06-28 21:22:35 +000012908 cat >>confdefs.h <<_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012909#define HAVE_MERGESORT 1
Lev Walkin49b0a3e2004-06-28 21:22:35 +000012910_ACEOF
12911
12912fi
12913done
12914
Lev Walkin27fd0b62007-08-27 23:57:45 +000012915for ac_func in mkstemps
Lev Walkinaef10c32014-01-14 01:47:25 -080012916do :
12917 ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
12918if test "x$ac_cv_func_mkstemps" = xyes; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000012919 cat >>confdefs.h <<_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012920#define HAVE_MKSTEMPS 1
Lev Walkin27fd0b62007-08-27 23:57:45 +000012921_ACEOF
12922
12923fi
12924done
Lev Walkinf15320b2004-06-03 03:38:44 +000012925
12926
Lev Walkin69b4f122012-09-04 01:37:14 -070012927ac_config_files="$ac_config_files skeletons/standard-modules/Makefile skeletons/tests/Makefile libasn1compiler/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/tests/Makefile libasn1fix/Makefile doc/docsrc/Makefile skeletons/Makefile examples/Makefile tests/Makefile asn1c/Makefile doc/Makefile asn1c.spec Makefile"
Lev Walkin27fd0b62007-08-27 23:57:45 +000012928
Lev Walkinf15320b2004-06-03 03:38:44 +000012929cat >confcache <<\_ACEOF
12930# This file is a shell script that caches the results of configure
12931# tests run on this system so they can be shared between configure
12932# scripts and configure runs, see configure's option --config-cache.
12933# It is not useful on other systems. If it contains results you don't
12934# want to keep, you may remove or edit it.
12935#
12936# config.status only pays attention to the cache file if you give it
12937# the --recheck option to rerun configure.
12938#
12939# `ac_cv_env_foo' variables (set or unset) will be overridden when
12940# loading this file, other *unset* `ac_cv_foo' will be assigned the
12941# following values.
12942
12943_ACEOF
12944
12945# The following way of writing the cache mishandles newlines in values,
12946# but we know of no workaround that is simple, portable, and efficient.
Lev Walkin27fd0b62007-08-27 23:57:45 +000012947# So, we kill variables containing newlines.
Lev Walkinf15320b2004-06-03 03:38:44 +000012948# Ultrix sh set writes to stderr and can't be redirected directly,
12949# and sets the high bit in the cache file unless we assign to the vars.
Lev Walkin27fd0b62007-08-27 23:57:45 +000012950(
12951 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12952 eval ac_val=\$$ac_var
12953 case $ac_val in #(
12954 *${as_nl}*)
12955 case $ac_var in #(
Lev Walkinaef10c32014-01-14 01:47:25 -080012956 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012957$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000012958 esac
12959 case $ac_var in #(
12960 _ | IFS | as_nl) ;; #(
Lev Walkinb3751942012-09-02 19:36:47 -070012961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Lev Walkinaef10c32014-01-14 01:47:25 -080012962 *) { eval $ac_var=; unset $ac_var;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000012963 esac ;;
12964 esac
12965 done
12966
Lev Walkinf15320b2004-06-03 03:38:44 +000012967 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +000012968 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12969 *${as_nl}ac_space=\ *)
Lev Walkinaef10c32014-01-14 01:47:25 -080012970 # `set' does not quote correctly, so add quotes: double-quote
12971 # substitution turns \\\\ into \\, and sed turns \\ into \.
Lev Walkinf15320b2004-06-03 03:38:44 +000012972 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +000012973 "s/'/'\\\\''/g;
12974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Lev Walkin27fd0b62007-08-27 23:57:45 +000012975 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +000012976 *)
12977 # `set' quotes correctly as required by POSIX, so do not add quotes.
Lev Walkin27fd0b62007-08-27 23:57:45 +000012978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +000012979 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000012980 esac |
12981 sort
12982) |
Lev Walkinf15320b2004-06-03 03:38:44 +000012983 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +000012984 /^ac_cv_env_/b end
Lev Walkinf15320b2004-06-03 03:38:44 +000012985 t clear
Lev Walkin27fd0b62007-08-27 23:57:45 +000012986 :clear
Lev Walkinf15320b2004-06-03 03:38:44 +000012987 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12988 t end
Lev Walkin27fd0b62007-08-27 23:57:45 +000012989 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12990 :end' >>confcache
12991if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12992 if test -w "$cache_file"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012993 if test "x$cache_file" != "x/dev/null"; then
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012995$as_echo "$as_me: updating cache $cache_file" >&6;}
Lev Walkinaef10c32014-01-14 01:47:25 -080012996 if test ! -f "$cache_file" || test -h "$cache_file"; then
12997 cat confcache >"$cache_file"
12998 else
12999 case $cache_file in #(
13000 */* | ?:*)
13001 mv -f confcache "$cache_file"$$ &&
13002 mv -f "$cache_file"$$ "$cache_file" ;; #(
13003 *)
13004 mv -f confcache "$cache_file" ;;
13005 esac
13006 fi
13007 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013008 else
Lev Walkinaef10c32014-01-14 01:47:25 -080013009 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013010$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000013011 fi
13012fi
13013rm -f confcache
13014
13015test "x$prefix" = xNONE && prefix=$ac_default_prefix
13016# Let make expand exec_prefix.
13017test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13018
Lev Walkinf15320b2004-06-03 03:38:44 +000013019DEFS=-DHAVE_CONFIG_H
13020
13021ac_libobjs=
13022ac_ltlibobjs=
Lev Walkinaef10c32014-01-14 01:47:25 -080013023U=
Lev Walkinf15320b2004-06-03 03:38:44 +000013024for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13025 # 1. Remove the extension, and $U if already installed.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013026 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Lev Walkinb3751942012-09-02 19:36:47 -070013027 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Lev Walkin27fd0b62007-08-27 23:57:45 +000013028 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13029 # will be set to the directory where LIBOBJS objects are built.
Lev Walkinaef10c32014-01-14 01:47:25 -080013030 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13031 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Lev Walkinf15320b2004-06-03 03:38:44 +000013032done
13033LIBOBJS=$ac_libobjs
13034
13035LTLIBOBJS=$ac_ltlibobjs
13036
13037
Lev Walkinb3751942012-09-02 19:36:47 -070013038 if test -n "$EXEEXT"; then
13039 am__EXEEXT_TRUE=
13040 am__EXEEXT_FALSE='#'
13041else
13042 am__EXEEXT_TRUE='#'
13043 am__EXEEXT_FALSE=
13044fi
13045
Lev Walkin8e8b5482004-06-17 23:42:48 +000013046if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013047 as_fn_error $? "conditional \"AMDEP\" was never defined.
13048Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013049fi
13050if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013051 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13052Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013053fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000013054if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013055 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13056Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013057fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013058
Lev Walkinb3751942012-09-02 19:36:47 -070013059
Lev Walkinaef10c32014-01-14 01:47:25 -080013060: "${CONFIG_STATUS=./config.status}"
Lev Walkinb3751942012-09-02 19:36:47 -070013061ac_write_fail=0
Lev Walkinf15320b2004-06-03 03:38:44 +000013062ac_clean_files_save=$ac_clean_files
13063ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Lev Walkinaef10c32014-01-14 01:47:25 -080013064{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013065$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Lev Walkinaef10c32014-01-14 01:47:25 -080013066as_write_fail=0
13067cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013068#! $SHELL
13069# Generated by $as_me.
13070# Run this file to recreate the current configuration.
13071# Compiler output produced by configure, useful for debugging
13072# configure, is in config.log if it exists.
13073
13074debug=false
13075ac_cs_recheck=false
13076ac_cs_silent=false
Lev Walkinf15320b2004-06-03 03:38:44 +000013077
Lev Walkinaef10c32014-01-14 01:47:25 -080013078SHELL=\${CONFIG_SHELL-$SHELL}
13079export SHELL
13080_ASEOF
13081cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13082## -------------------- ##
13083## M4sh Initialization. ##
13084## -------------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +000013085
Lev Walkin4c776e52010-11-08 02:07:31 -080013086# Be more Bourne compatible
13087DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinaef10c32014-01-14 01:47:25 -080013088if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013089 emulate sh
13090 NULLCMD=:
Lev Walkinb3751942012-09-02 19:36:47 -070013091 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Lev Walkinf15320b2004-06-03 03:38:44 +000013092 # is contrary to our usage. Disable this feature.
13093 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013094 setopt NO_GLOB_SUBST
13095else
Lev Walkinaef10c32014-01-14 01:47:25 -080013096 case `(set -o) 2>/dev/null` in #(
13097 *posix*) :
13098 set -o posix ;; #(
13099 *) :
13100 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -080013101esac
Lev Walkinf15320b2004-06-03 03:38:44 +000013102fi
Lev Walkin4c776e52010-11-08 02:07:31 -080013103
13104
Lev Walkinb3751942012-09-02 19:36:47 -070013105as_nl='
13106'
13107export as_nl
13108# Printing a long string crashes Solaris 7 /usr/bin/printf.
13109as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13110as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13111as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Lev Walkinaef10c32014-01-14 01:47:25 -080013112# Prefer a ksh shell builtin over an external printf program on Solaris,
13113# but without wasting forks for bash or zsh.
13114if test -z "$BASH_VERSION$ZSH_VERSION" \
13115 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13116 as_echo='print -r --'
13117 as_echo_n='print -rn --'
13118elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Lev Walkinb3751942012-09-02 19:36:47 -070013119 as_echo='printf %s\n'
13120 as_echo_n='printf %s'
13121else
13122 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13123 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13124 as_echo_n='/usr/ucb/echo -n'
13125 else
13126 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13127 as_echo_n_body='eval
13128 arg=$1;
Lev Walkinaef10c32014-01-14 01:47:25 -080013129 case $arg in #(
Lev Walkinb3751942012-09-02 19:36:47 -070013130 *"$as_nl"*)
13131 expr "X$arg" : "X\\(.*\\)$as_nl";
13132 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13133 esac;
13134 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13135 '
13136 export as_echo_n_body
13137 as_echo_n='sh -c $as_echo_n_body as_echo'
13138 fi
13139 export as_echo_body
13140 as_echo='sh -c $as_echo_body as_echo'
13141fi
13142
Lev Walkinf15320b2004-06-03 03:38:44 +000013143# The user is always right.
13144if test "${PATH_SEPARATOR+set}" != set; then
Lev Walkinb3751942012-09-02 19:36:47 -070013145 PATH_SEPARATOR=:
13146 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13147 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13148 PATH_SEPARATOR=';'
13149 }
Lev Walkinf15320b2004-06-03 03:38:44 +000013150fi
13151
Lev Walkin27fd0b62007-08-27 23:57:45 +000013152
13153# IFS
13154# We need space, tab and new line, in precisely that order. Quoting is
13155# there to prevent editors from complaining about space-tab.
13156# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13157# splitting by setting IFS to empty value.)
Lev Walkin27fd0b62007-08-27 23:57:45 +000013158IFS=" "" $as_nl"
13159
13160# Find who we are. Look in the path if we contain no directory separator.
Lev Walkinaef10c32014-01-14 01:47:25 -080013161as_myself=
13162case $0 in #((
Lev Walkin27fd0b62007-08-27 23:57:45 +000013163 *[\\/]* ) as_myself=$0 ;;
13164 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +000013165for as_dir in $PATH
13166do
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080013169 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13170 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000013171IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000013172
Lev Walkin27fd0b62007-08-27 23:57:45 +000013173 ;;
13174esac
13175# We did not find ourselves, most probably we were run as `sh COMMAND'
13176# in which case we are not to be found in the path.
13177if test "x$as_myself" = x; then
13178 as_myself=$0
13179fi
13180if test ! -f "$as_myself"; then
Lev Walkinb3751942012-09-02 19:36:47 -070013181 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Lev Walkinaef10c32014-01-14 01:47:25 -080013182 exit 1
Lev Walkin27fd0b62007-08-27 23:57:45 +000013183fi
13184
Lev Walkinaef10c32014-01-14 01:47:25 -080013185# Unset variables that we do not need and which cause bugs (e.g. in
13186# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13187# suppresses any "Segmentation fault" message there. '((' could
13188# trigger a bug in pdksh 5.2.14.
13189for as_var in BASH_ENV ENV MAIL MAILPATH
13190do eval test x\${$as_var+set} = xset \
13191 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Lev Walkin27fd0b62007-08-27 23:57:45 +000013192done
13193PS1='$ '
13194PS2='> '
13195PS4='+ '
13196
13197# NLS nuisances.
Lev Walkinb3751942012-09-02 19:36:47 -070013198LC_ALL=C
13199export LC_ALL
13200LANGUAGE=C
13201export LANGUAGE
Lev Walkin27fd0b62007-08-27 23:57:45 +000013202
Lev Walkinaef10c32014-01-14 01:47:25 -080013203# CDPATH.
13204(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13205
13206
13207# as_fn_error STATUS ERROR [LINENO LOG_FD]
13208# ----------------------------------------
13209# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13210# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13211# script with STATUS, using 1 if that was 0.
13212as_fn_error ()
13213{
13214 as_status=$1; test $as_status -eq 0 && as_status=1
13215 if test "$4"; then
13216 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13217 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13218 fi
13219 $as_echo "$as_me: error: $2" >&2
13220 as_fn_exit $as_status
13221} # as_fn_error
13222
13223
13224# as_fn_set_status STATUS
13225# -----------------------
13226# Set $? to STATUS, without forking.
13227as_fn_set_status ()
13228{
13229 return $1
13230} # as_fn_set_status
13231
13232# as_fn_exit STATUS
13233# -----------------
13234# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13235as_fn_exit ()
13236{
13237 set +e
13238 as_fn_set_status $1
13239 exit $1
13240} # as_fn_exit
13241
13242# as_fn_unset VAR
13243# ---------------
13244# Portably unset VAR.
13245as_fn_unset ()
13246{
13247 { eval $1=; unset $1;}
13248}
13249as_unset=as_fn_unset
13250# as_fn_append VAR VALUE
13251# ----------------------
13252# Append the text in VALUE to the end of the definition contained in VAR. Take
13253# advantage of any shell optimizations that allow amortized linear growth over
13254# repeated appends, instead of the typical quadratic growth present in naive
13255# implementations.
13256if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13257 eval 'as_fn_append ()
13258 {
13259 eval $1+=\$2
13260 }'
13261else
13262 as_fn_append ()
13263 {
13264 eval $1=\$$1\$2
13265 }
13266fi # as_fn_append
13267
13268# as_fn_arith ARG...
13269# ------------------
13270# Perform arithmetic evaluation on the ARGs, and store the result in the
13271# global $as_val. Take advantage of shells that can avoid forks. The arguments
13272# must be portable across $(()) and expr.
13273if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13274 eval 'as_fn_arith ()
13275 {
13276 as_val=$(( $* ))
13277 }'
13278else
13279 as_fn_arith ()
13280 {
13281 as_val=`expr "$@" || test $? -eq 1`
13282 }
13283fi # as_fn_arith
13284
13285
Lev Walkin27fd0b62007-08-27 23:57:45 +000013286if expr a : '\(a\)' >/dev/null 2>&1 &&
13287 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13288 as_expr=expr
13289else
13290 as_expr=false
13291fi
13292
13293if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13294 as_basename=basename
13295else
13296 as_basename=false
13297fi
13298
Lev Walkinaef10c32014-01-14 01:47:25 -080013299if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13300 as_dirname=dirname
13301else
13302 as_dirname=false
13303fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013304
Lev Walkin27fd0b62007-08-27 23:57:45 +000013305as_me=`$as_basename -- "$0" ||
13306$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13307 X"$0" : 'X\(//\)$' \| \
13308 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070013309$as_echo X/"$0" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000013310 sed '/^.*\/\([^/][^/]*\)\/*$/{
13311 s//\1/
13312 q
13313 }
13314 /^X\/\(\/\/\)$/{
13315 s//\1/
13316 q
13317 }
13318 /^X\/\(\/\).*/{
13319 s//\1/
13320 q
13321 }
13322 s/.*/./; q'`
13323
Lev Walkinaef10c32014-01-14 01:47:25 -080013324# Avoid depending upon Character Ranges.
13325as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13326as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13327as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13328as_cr_digits='0123456789'
13329as_cr_alnum=$as_cr_Letters$as_cr_digits
Lev Walkin27fd0b62007-08-27 23:57:45 +000013330
13331ECHO_C= ECHO_N= ECHO_T=
Lev Walkinaef10c32014-01-14 01:47:25 -080013332case `echo -n x` in #(((((
Lev Walkin27fd0b62007-08-27 23:57:45 +000013333-n*)
Lev Walkinaef10c32014-01-14 01:47:25 -080013334 case `echo 'xy\c'` in
Lev Walkin27fd0b62007-08-27 23:57:45 +000013335 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Lev Walkinaef10c32014-01-14 01:47:25 -080013336 xy) ECHO_C='\c';;
13337 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13338 ECHO_T=' ';;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013339 esac;;
13340*)
13341 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +000013342esac
Lev Walkinf15320b2004-06-03 03:38:44 +000013343
13344rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +000013345if test -d conf$$.dir; then
13346 rm -f conf$$.dir/conf$$.file
13347else
13348 rm -f conf$$.dir
Lev Walkinb3751942012-09-02 19:36:47 -070013349 mkdir conf$$.dir 2>/dev/null
Lev Walkin27fd0b62007-08-27 23:57:45 +000013350fi
Lev Walkinb3751942012-09-02 19:36:47 -070013351if (echo >conf$$.file) 2>/dev/null; then
13352 if ln -s conf$$.file conf$$ 2>/dev/null; then
13353 as_ln_s='ln -s'
13354 # ... but there are two gotchas:
13355 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13356 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Lev Walkinaef10c32014-01-14 01:47:25 -080013357 # In both cases, we have to default to `cp -pR'.
Lev Walkinb3751942012-09-02 19:36:47 -070013358 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Lev Walkinaef10c32014-01-14 01:47:25 -080013359 as_ln_s='cp -pR'
Lev Walkinb3751942012-09-02 19:36:47 -070013360 elif ln conf$$.file conf$$ 2>/dev/null; then
13361 as_ln_s=ln
13362 else
Lev Walkinaef10c32014-01-14 01:47:25 -080013363 as_ln_s='cp -pR'
Lev Walkinb3751942012-09-02 19:36:47 -070013364 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013365else
Lev Walkinaef10c32014-01-14 01:47:25 -080013366 as_ln_s='cp -pR'
Lev Walkinf15320b2004-06-03 03:38:44 +000013367fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013368rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13369rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +000013370
Lev Walkinaef10c32014-01-14 01:47:25 -080013371
13372# as_fn_mkdir_p
13373# -------------
13374# Create "$as_dir" as a directory, including parents if necessary.
13375as_fn_mkdir_p ()
13376{
13377
13378 case $as_dir in #(
13379 -*) as_dir=./$as_dir;;
13380 esac
13381 test -d "$as_dir" || eval $as_mkdir_p || {
13382 as_dirs=
13383 while :; do
13384 case $as_dir in #(
13385 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13386 *) as_qdir=$as_dir;;
13387 esac
13388 as_dirs="'$as_qdir' $as_dirs"
13389 as_dir=`$as_dirname -- "$as_dir" ||
13390$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13391 X"$as_dir" : 'X\(//\)[^/]' \| \
13392 X"$as_dir" : 'X\(//\)$' \| \
13393 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13394$as_echo X"$as_dir" |
13395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13396 s//\1/
13397 q
13398 }
13399 /^X\(\/\/\)[^/].*/{
13400 s//\1/
13401 q
13402 }
13403 /^X\(\/\/\)$/{
13404 s//\1/
13405 q
13406 }
13407 /^X\(\/\).*/{
13408 s//\1/
13409 q
13410 }
13411 s/.*/./; q'`
13412 test -d "$as_dir" && break
13413 done
13414 test -z "$as_dirs" || eval "mkdir $as_dirs"
13415 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13416
13417
13418} # as_fn_mkdir_p
Lev Walkinf15320b2004-06-03 03:38:44 +000013419if mkdir -p . 2>/dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013420 as_mkdir_p='mkdir -p "$as_dir"'
Lev Walkinf15320b2004-06-03 03:38:44 +000013421else
Lev Walkin8e8b5482004-06-17 23:42:48 +000013422 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +000013423 as_mkdir_p=false
13424fi
13425
Lev Walkinaef10c32014-01-14 01:47:25 -080013426
13427# as_fn_executable_p FILE
13428# -----------------------
13429# Test if FILE is an executable regular file.
13430as_fn_executable_p ()
13431{
13432 test -f "$1" && test -x "$1"
13433} # as_fn_executable_p
13434as_test_x='test -x'
13435as_executable_p=as_fn_executable_p
Lev Walkinf15320b2004-06-03 03:38:44 +000013436
13437# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000013438as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013439
13440# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000013441as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013442
13443
Lev Walkinf15320b2004-06-03 03:38:44 +000013444exec 6>&1
Lev Walkinaef10c32014-01-14 01:47:25 -080013445## ----------------------------------- ##
13446## Main body of $CONFIG_STATUS script. ##
13447## ----------------------------------- ##
13448_ASEOF
13449test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013450
Lev Walkinaef10c32014-01-14 01:47:25 -080013451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13452# Save the log message, to keep $0 and so on meaningful, and to
Lev Walkinf15320b2004-06-03 03:38:44 +000013453# report actual input values of CONFIG_FILES etc. instead of their
Lev Walkin27fd0b62007-08-27 23:57:45 +000013454# values after options handling.
13455ac_log="
Lev Walkind8ca7ce2013-03-16 07:07:26 -070013456This file was extended by asn1c $as_me 0.9.24, which was
Lev Walkinaef10c32014-01-14 01:47:25 -080013457generated by GNU Autoconf 2.69. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +000013458
13459 CONFIG_FILES = $CONFIG_FILES
13460 CONFIG_HEADERS = $CONFIG_HEADERS
13461 CONFIG_LINKS = $CONFIG_LINKS
13462 CONFIG_COMMANDS = $CONFIG_COMMANDS
13463 $ $0 $@
13464
Lev Walkin27fd0b62007-08-27 23:57:45 +000013465on `(hostname || uname -n) 2>/dev/null | sed 1q`
13466"
13467
Lev Walkinf15320b2004-06-03 03:38:44 +000013468_ACEOF
13469
Lev Walkinb3751942012-09-02 19:36:47 -070013470case $ac_config_files in *"
13471"*) set x $ac_config_files; shift; ac_config_files=$*;;
13472esac
13473
13474case $ac_config_headers in *"
13475"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13476esac
13477
13478
13479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013480# Files that config.status was made for.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013481config_files="$ac_config_files"
13482config_headers="$ac_config_headers"
13483config_commands="$ac_config_commands"
Lev Walkinf15320b2004-06-03 03:38:44 +000013484
Lev Walkin27fd0b62007-08-27 23:57:45 +000013485_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013486
Lev Walkinb3751942012-09-02 19:36:47 -070013487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013488ac_cs_usage="\
Lev Walkinaef10c32014-01-14 01:47:25 -080013489\`$as_me' instantiates files and other configuration actions
13490from templates according to the current configuration. Unless the files
13491and actions are specified as TAGs, all are instantiated by default.
Lev Walkinf15320b2004-06-03 03:38:44 +000013492
Lev Walkinaef10c32014-01-14 01:47:25 -080013493Usage: $0 [OPTION]... [TAG]...
Lev Walkinf15320b2004-06-03 03:38:44 +000013494
13495 -h, --help print this help, then exit
Lev Walkin4c776e52010-11-08 02:07:31 -080013496 -V, --version print version number and configuration settings, then exit
Lev Walkinaef10c32014-01-14 01:47:25 -080013497 --config print configuration, then exit
Lev Walkinb3751942012-09-02 19:36:47 -070013498 -q, --quiet, --silent
13499 do not print progress messages
Lev Walkinf15320b2004-06-03 03:38:44 +000013500 -d, --debug don't remove temporary files
13501 --recheck update $as_me by reconfiguring in the same conditions
Lev Walkinb3751942012-09-02 19:36:47 -070013502 --file=FILE[:TEMPLATE]
13503 instantiate the configuration file FILE
13504 --header=FILE[:TEMPLATE]
13505 instantiate the configuration header FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000013506
13507Configuration files:
13508$config_files
13509
13510Configuration headers:
13511$config_headers
13512
13513Configuration commands:
13514$config_commands
13515
Lev Walkinaef10c32014-01-14 01:47:25 -080013516Report bugs to <vlm@lionet.info>."
Lev Walkinf15320b2004-06-03 03:38:44 +000013517
Lev Walkin27fd0b62007-08-27 23:57:45 +000013518_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinaef10c32014-01-14 01:47:25 -080013520ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Lev Walkinf15320b2004-06-03 03:38:44 +000013521ac_cs_version="\\
Lev Walkind8ca7ce2013-03-16 07:07:26 -070013522asn1c config.status 0.9.24
Lev Walkinaef10c32014-01-14 01:47:25 -080013523configured by $0, generated by GNU Autoconf 2.69,
13524 with options \\"\$ac_cs_config\\"
Lev Walkinf15320b2004-06-03 03:38:44 +000013525
Lev Walkinaef10c32014-01-14 01:47:25 -080013526Copyright (C) 2012 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +000013527This config.status script is free software; the Free Software Foundation
13528gives unlimited permission to copy, distribute and modify it."
Lev Walkin27fd0b62007-08-27 23:57:45 +000013529
13530ac_pwd='$ac_pwd'
13531srcdir='$srcdir'
13532INSTALL='$INSTALL'
Lev Walkin4c776e52010-11-08 02:07:31 -080013533MKDIR_P='$MKDIR_P'
Lev Walkinb3751942012-09-02 19:36:47 -070013534AWK='$AWK'
13535test -n "\$AWK" || AWK=awk
Lev Walkinf15320b2004-06-03 03:38:44 +000013536_ACEOF
13537
Lev Walkinb3751942012-09-02 19:36:47 -070013538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13539# The default lists apply if the user does not specify any file.
Lev Walkinf15320b2004-06-03 03:38:44 +000013540ac_need_defaults=:
13541while test $# != 0
13542do
13543 case $1 in
Lev Walkinaef10c32014-01-14 01:47:25 -080013544 --*=?*)
Lev Walkin27fd0b62007-08-27 23:57:45 +000013545 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13546 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +000013547 ac_shift=:
13548 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -080013549 --*=)
13550 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13551 ac_optarg=
13552 ac_shift=:
13553 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013554 *)
Lev Walkinf15320b2004-06-03 03:38:44 +000013555 ac_option=$1
13556 ac_optarg=$2
13557 ac_shift=shift
13558 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013559 esac
13560
13561 case $ac_option in
13562 # Handling of the options.
Lev Walkinf15320b2004-06-03 03:38:44 +000013563 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13564 ac_cs_recheck=: ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013565 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Lev Walkinb3751942012-09-02 19:36:47 -070013566 $as_echo "$ac_cs_version"; exit ;;
Lev Walkinaef10c32014-01-14 01:47:25 -080013567 --config | --confi | --conf | --con | --co | --c )
13568 $as_echo "$ac_cs_config"; exit ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013569 --debug | --debu | --deb | --de | --d | -d )
Lev Walkinf15320b2004-06-03 03:38:44 +000013570 debug=: ;;
13571 --file | --fil | --fi | --f )
13572 $ac_shift
Lev Walkinb3751942012-09-02 19:36:47 -070013573 case $ac_optarg in
13574 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinaef10c32014-01-14 01:47:25 -080013575 '') as_fn_error $? "missing file argument" ;;
Lev Walkinb3751942012-09-02 19:36:47 -070013576 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080013577 as_fn_append CONFIG_FILES " '$ac_optarg'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013578 ac_need_defaults=false;;
13579 --header | --heade | --head | --hea )
13580 $ac_shift
Lev Walkinb3751942012-09-02 19:36:47 -070013581 case $ac_optarg in
13582 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13583 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080013584 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013585 ac_need_defaults=false;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013586 --he | --h)
13587 # Conflict between --help and --header
Lev Walkinaef10c32014-01-14 01:47:25 -080013588 as_fn_error $? "ambiguous option: \`$1'
13589Try \`$0 --help' for more information.";;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013590 --help | --hel | -h )
Lev Walkinb3751942012-09-02 19:36:47 -070013591 $as_echo "$ac_cs_usage"; exit ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13593 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13594 ac_cs_silent=: ;;
13595
13596 # This is an error.
Lev Walkinaef10c32014-01-14 01:47:25 -080013597 -*) as_fn_error $? "unrecognized option: \`$1'
13598Try \`$0 --help' for more information." ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013599
Lev Walkinaef10c32014-01-14 01:47:25 -080013600 *) as_fn_append ac_config_targets " $1"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013601 ac_need_defaults=false ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013602
13603 esac
13604 shift
13605done
13606
13607ac_configure_extra_args=
13608
13609if $ac_cs_silent; then
13610 exec 6>/dev/null
13611 ac_configure_extra_args="$ac_configure_extra_args --silent"
13612fi
13613
13614_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013616if \$ac_cs_recheck; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013617 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Lev Walkinb3751942012-09-02 19:36:47 -070013618 shift
13619 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13620 CONFIG_SHELL='$SHELL'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013621 export CONFIG_SHELL
Lev Walkinb3751942012-09-02 19:36:47 -070013622 exec "\$@"
Lev Walkinf15320b2004-06-03 03:38:44 +000013623fi
13624
13625_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000013627exec 5>>config.log
13628{
13629 echo
13630 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13631## Running $as_me. ##
13632_ASBOX
Lev Walkinb3751942012-09-02 19:36:47 -070013633 $as_echo "$ac_log"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013634} >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013635
Lev Walkin27fd0b62007-08-27 23:57:45 +000013636_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013638#
Lev Walkin27fd0b62007-08-27 23:57:45 +000013639# INIT-COMMANDS
Lev Walkinf15320b2004-06-03 03:38:44 +000013640#
Lev Walkin8e8b5482004-06-17 23:42:48 +000013641AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Lev Walkinf15320b2004-06-03 03:38:44 +000013642
Lev Walkin4da95cf2010-10-16 02:46:32 -070013643
13644# The HP-UX ksh and POSIX shell print the target directory to stdout
13645# if CDPATH is set.
13646(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13647
13648sed_quote_subst='$sed_quote_subst'
13649double_quote_subst='$double_quote_subst'
13650delay_variable_subst='$delay_variable_subst'
Lev Walkinaef10c32014-01-14 01:47:25 -080013651macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13652macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13653enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13654enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13655pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13656enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13657SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13658ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13659host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13660host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13661host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13662build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13663build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13664build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13665SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13666Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13667GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13668EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13669FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13670LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13671NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13672LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13673max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13674ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13675exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13676lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13677lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13678lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13679lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13680lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13681reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13682reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13683OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13684deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13685file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13686file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13687want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13688DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13689sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13690AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13691AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13692archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13693STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13694RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13695old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13696old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13697old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13698lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13699CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13700CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13701compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13702GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13703lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13704lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13705lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13706lt_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"`'
13707nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13708lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13709objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13710MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13711lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13712lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13713lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13714lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13715lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13716need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13717MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13718DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13719NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13720LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13721OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13722OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13723libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13724shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13725extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13726archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13727enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13728export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13729whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13730compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13731old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13732old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13733archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13734archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13735module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13736module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13737with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13738allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13739no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13740hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13741hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13742hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13743hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13744hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13745hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13746hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13747hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13748inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13749link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13750always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13751export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13752exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13753include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13754prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13755postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13756file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13757variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13758need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13759need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13760version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13761runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13762shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13763shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13764libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13765library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13766soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13767install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13768postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13769postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13770finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13771finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13772hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13773sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13774sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13775hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13776enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13777enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13778enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13779old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13780striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Lev Walkin4da95cf2010-10-16 02:46:32 -070013781
13782LTCC='$LTCC'
13783LTCFLAGS='$LTCFLAGS'
13784compiler='$compiler_DEFAULT'
13785
Lev Walkinaef10c32014-01-14 01:47:25 -080013786# A function that is used when there is no print builtin or printf.
13787func_fallback_echo ()
13788{
13789 eval 'cat <<_LTECHO_EOF
13790\$1
13791_LTECHO_EOF'
13792}
13793
Lev Walkin4da95cf2010-10-16 02:46:32 -070013794# Quote evaled strings.
Lev Walkinaef10c32014-01-14 01:47:25 -080013795for var in SHELL \
13796ECHO \
13797SED \
Lev Walkin4da95cf2010-10-16 02:46:32 -070013798GREP \
13799EGREP \
13800FGREP \
13801LD \
13802NM \
13803LN_S \
13804lt_SP2NL \
13805lt_NL2SP \
13806reload_flag \
Lev Walkinaef10c32014-01-14 01:47:25 -080013807OBJDUMP \
Lev Walkin4da95cf2010-10-16 02:46:32 -070013808deplibs_check_method \
13809file_magic_cmd \
Lev Walkinaef10c32014-01-14 01:47:25 -080013810file_magic_glob \
13811want_nocaseglob \
13812DLLTOOL \
13813sharedlib_from_linklib_cmd \
Lev Walkin4da95cf2010-10-16 02:46:32 -070013814AR \
13815AR_FLAGS \
Lev Walkinaef10c32014-01-14 01:47:25 -080013816archiver_list_spec \
Lev Walkin4da95cf2010-10-16 02:46:32 -070013817STRIP \
13818RANLIB \
13819CC \
13820CFLAGS \
13821compiler \
13822lt_cv_sys_global_symbol_pipe \
13823lt_cv_sys_global_symbol_to_cdecl \
13824lt_cv_sys_global_symbol_to_c_name_address \
13825lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Lev Walkinaef10c32014-01-14 01:47:25 -080013826nm_file_list_spec \
Lev Walkin4da95cf2010-10-16 02:46:32 -070013827lt_prog_compiler_no_builtin_flag \
Lev Walkin4c776e52010-11-08 02:07:31 -080013828lt_prog_compiler_pic \
Lev Walkinaef10c32014-01-14 01:47:25 -080013829lt_prog_compiler_wl \
Lev Walkin4da95cf2010-10-16 02:46:32 -070013830lt_prog_compiler_static \
13831lt_cv_prog_compiler_c_o \
13832need_locks \
Lev Walkinaef10c32014-01-14 01:47:25 -080013833MANIFEST_TOOL \
Lev Walkin4da95cf2010-10-16 02:46:32 -070013834DSYMUTIL \
13835NMEDIT \
13836LIPO \
13837OTOOL \
13838OTOOL64 \
13839shrext_cmds \
13840export_dynamic_flag_spec \
13841whole_archive_flag_spec \
13842compiler_needs_object \
13843with_gnu_ld \
13844allow_undefined_flag \
13845no_undefined_flag \
13846hardcode_libdir_flag_spec \
13847hardcode_libdir_flag_spec_ld \
13848hardcode_libdir_separator \
13849exclude_expsyms \
13850include_expsyms \
13851file_list_spec \
13852variables_saved_for_relink \
13853libname_spec \
13854library_names_spec \
13855soname_spec \
Lev Walkinaef10c32014-01-14 01:47:25 -080013856install_override_mode \
Lev Walkin4da95cf2010-10-16 02:46:32 -070013857finish_eval \
13858old_striplib \
13859striplib; do
Lev Walkinaef10c32014-01-14 01:47:25 -080013860 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Lev Walkin4da95cf2010-10-16 02:46:32 -070013861 *[\\\\\\\`\\"\\\$]*)
Lev Walkinaef10c32014-01-14 01:47:25 -080013862 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Lev Walkin4da95cf2010-10-16 02:46:32 -070013863 ;;
13864 *)
13865 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13866 ;;
13867 esac
13868done
13869
13870# Double-quote double-evaled strings.
13871for var in reload_cmds \
13872old_postinstall_cmds \
13873old_postuninstall_cmds \
13874old_archive_cmds \
13875extract_expsyms_cmds \
13876old_archive_from_new_cmds \
13877old_archive_from_expsyms_cmds \
13878archive_cmds \
13879archive_expsym_cmds \
13880module_cmds \
13881module_expsym_cmds \
13882export_symbols_cmds \
13883prelink_cmds \
Lev Walkinaef10c32014-01-14 01:47:25 -080013884postlink_cmds \
Lev Walkin4da95cf2010-10-16 02:46:32 -070013885postinstall_cmds \
13886postuninstall_cmds \
13887finish_cmds \
13888sys_lib_search_path_spec \
13889sys_lib_dlsearch_path_spec; do
Lev Walkinaef10c32014-01-14 01:47:25 -080013890 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Lev Walkin4da95cf2010-10-16 02:46:32 -070013891 *[\\\\\\\`\\"\\\$]*)
Lev Walkinaef10c32014-01-14 01:47:25 -080013892 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Lev Walkin4da95cf2010-10-16 02:46:32 -070013893 ;;
13894 *)
13895 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13896 ;;
13897 esac
13898done
13899
13900ac_aux_dir='$ac_aux_dir'
13901xsi_shell='$xsi_shell'
13902lt_shell_append='$lt_shell_append'
13903
13904# See if we are running on zsh, and set the options which allow our
13905# commands through without removal of \ escapes INIT.
13906if test -n "\${ZSH_VERSION+set}" ; then
13907 setopt NO_GLOB_SUBST
13908fi
13909
13910
13911 PACKAGE='$PACKAGE'
13912 VERSION='$VERSION'
13913 TIMESTAMP='$TIMESTAMP'
13914 RM='$RM'
13915 ofile='$ofile'
13916
13917
13918
13919
Lev Walkinf15320b2004-06-03 03:38:44 +000013920_ACEOF
13921
Lev Walkinb3751942012-09-02 19:36:47 -070013922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000013923
13924# Handling of arguments.
Lev Walkinf15320b2004-06-03 03:38:44 +000013925for ac_config_target in $ac_config_targets
13926do
Lev Walkin27fd0b62007-08-27 23:57:45 +000013927 case $ac_config_target in
Lev Walkine7c4b962010-11-09 03:10:36 -080013928 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013929 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070013930 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013931 "skeletons/standard-modules/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/standard-modules/Makefile" ;;
13932 "skeletons/tests/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;;
13933 "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;;
13934 "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;;
13935 "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013936 "asn1c/tests/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;;
13937 "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;;
Lev Walkine7c4b962010-11-09 03:10:36 -080013938 "doc/docsrc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docsrc/Makefile" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013939 "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;;
13940 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13941 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13942 "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;;
13943 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13944 "asn1c.spec") CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;;
13945 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13946
Lev Walkinaef10c32014-01-14 01:47:25 -080013947 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013948 esac
13949done
13950
Lev Walkin27fd0b62007-08-27 23:57:45 +000013951
Lev Walkinf15320b2004-06-03 03:38:44 +000013952# If the user did not use the arguments to specify the items to instantiate,
13953# then the envvar interface is used. Set only those that are not.
13954# We use the long form for the default assignment because of an extremely
13955# bizarre bug on SunOS 4.1.3.
13956if $ac_need_defaults; then
13957 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13958 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13959 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13960fi
13961
13962# Have a temporary directory for convenience. Make it in the build tree
Lev Walkin27fd0b62007-08-27 23:57:45 +000013963# simply because there is no reason against having it here, and in addition,
Lev Walkinf15320b2004-06-03 03:38:44 +000013964# creating and moving files from /tmp can sometimes cause problems.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013965# Hook for its removal unless debugging.
13966# Note that there is a small window in which the directory will not be cleaned:
13967# after its creation but before its name has been assigned to `$tmp'.
Lev Walkinf15320b2004-06-03 03:38:44 +000013968$debug ||
13969{
Lev Walkinaef10c32014-01-14 01:47:25 -080013970 tmp= ac_tmp=
Lev Walkin27fd0b62007-08-27 23:57:45 +000013971 trap 'exit_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080013972 : "${ac_tmp:=$tmp}"
13973 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Lev Walkin27fd0b62007-08-27 23:57:45 +000013974' 0
Lev Walkinaef10c32014-01-14 01:47:25 -080013975 trap 'as_fn_exit 1' 1 2 13 15
Lev Walkinf15320b2004-06-03 03:38:44 +000013976}
Lev Walkinf15320b2004-06-03 03:38:44 +000013977# Create a (secure) tmp directory for tmp files.
13978
13979{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013980 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Lev Walkinaef10c32014-01-14 01:47:25 -080013981 test -d "$tmp"
Lev Walkinf15320b2004-06-03 03:38:44 +000013982} ||
13983{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013984 tmp=./conf$$-$RANDOM
13985 (umask 077 && mkdir "$tmp")
Lev Walkinaef10c32014-01-14 01:47:25 -080013986} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13987ac_tmp=$tmp
Lev Walkinf15320b2004-06-03 03:38:44 +000013988
Lev Walkinb3751942012-09-02 19:36:47 -070013989# Set up the scripts for CONFIG_FILES section.
13990# No need to generate them if there are no CONFIG_FILES.
13991# This happens for instance with `./config.status config.h'.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013992if test -n "$CONFIG_FILES"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013993
Lev Walkinb3751942012-09-02 19:36:47 -070013994
Lev Walkinaef10c32014-01-14 01:47:25 -080013995ac_cr=`echo X | tr X '\015'`
13996# On cygwin, bash can eat \r inside `` if the user requested igncr.
13997# But we know of no other shell where ac_cr would be empty at this
13998# point, so we can use a bashism as a fallback.
13999if test "x$ac_cr" = x; then
14000 eval ac_cr=\$\'\\r\'
14001fi
Lev Walkinb3751942012-09-02 19:36:47 -070014002ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14003if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14004 ac_cs_awk_cr='\\r'
14005else
14006 ac_cs_awk_cr=$ac_cr
14007fi
14008
Lev Walkinaef10c32014-01-14 01:47:25 -080014009echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Lev Walkinf15320b2004-06-03 03:38:44 +000014010_ACEOF
14011
Lev Walkin27fd0b62007-08-27 23:57:45 +000014012
Lev Walkinb3751942012-09-02 19:36:47 -070014013{
14014 echo "cat >conf$$subs.awk <<_ACEOF" &&
14015 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14016 echo "_ACEOF"
14017} >conf$$subs.sh ||
Lev Walkinaef10c32014-01-14 01:47:25 -080014018 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14019ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014020ac_delim='%!_!# '
14021for ac_last_try in false false false false false :; do
Lev Walkinb3751942012-09-02 19:36:47 -070014022 . ./conf$$subs.sh ||
Lev Walkinaef10c32014-01-14 01:47:25 -080014023 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014024
Lev Walkinb3751942012-09-02 19:36:47 -070014025 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14026 if test $ac_delim_n = $ac_delim_num; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000014027 break
14028 elif $ac_last_try; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014029 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014030 else
14031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Lev Walkinf15320b2004-06-03 03:38:44 +000014032 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014033done
Lev Walkinb3751942012-09-02 19:36:47 -070014034rm -f conf$$subs.sh
Lev Walkin27fd0b62007-08-27 23:57:45 +000014035
Lev Walkinb3751942012-09-02 19:36:47 -070014036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinaef10c32014-01-14 01:47:25 -080014037cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000014038_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014039sed -n '
14040h
14041s/^/S["/; s/!.*/"]=/
14042p
14043g
14044s/^[^!]*!//
14045:repl
14046t repl
14047s/'"$ac_delim"'$//
14048t delim
14049:nl
14050h
Lev Walkinaef10c32014-01-14 01:47:25 -080014051s/\(.\{148\}\)..*/\1/
Lev Walkinb3751942012-09-02 19:36:47 -070014052t more1
14053s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14054p
14055n
14056b repl
14057:more1
14058s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14059p
14060g
14061s/.\{148\}//
14062t nl
14063:delim
14064h
Lev Walkinaef10c32014-01-14 01:47:25 -080014065s/\(.\{148\}\)..*/\1/
Lev Walkinb3751942012-09-02 19:36:47 -070014066t more2
14067s/["\\]/\\&/g; s/^/"/; s/$/"/
14068p
14069b
14070:more2
14071s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14072p
14073g
14074s/.\{148\}//
14075t delim
14076' <conf$$subs.awk | sed '
14077/^[^""]/{
14078 N
14079 s/\n//
14080}
14081' >>$CONFIG_STATUS || ac_write_fail=1
14082rm -f conf$$subs.awk
14083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14084_ACAWK
Lev Walkinaef10c32014-01-14 01:47:25 -080014085cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Lev Walkinb3751942012-09-02 19:36:47 -070014086 for (key in S) S_is_set[key] = 1
14087 FS = ""
14088
14089}
14090{
14091 line = $ 0
14092 nfields = split(line, field, "@")
14093 substed = 0
14094 len = length(field[1])
14095 for (i = 2; i < nfields; i++) {
14096 key = field[i]
14097 keylen = length(key)
14098 if (S_is_set[key]) {
14099 value = S[key]
14100 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14101 len += length(value) + length(field[++i])
14102 substed = 1
14103 } else
14104 len += 1 + keylen
14105 }
14106
14107 print line
14108}
14109
14110_ACAWK
Lev Walkin27fd0b62007-08-27 23:57:45 +000014111_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14113if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14114 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14115else
14116 cat
Lev Walkinaef10c32014-01-14 01:47:25 -080014117fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14118 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014119_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014120
Lev Walkinaef10c32014-01-14 01:47:25 -080014121# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14122# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Lev Walkin27fd0b62007-08-27 23:57:45 +000014123# trailing colons and then remove the whole line if VPATH becomes empty
14124# (actually we leave an empty line to preserve line numbers).
14125if test "x$srcdir" = x.; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014126 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14127h
14128s///
14129s/^/:/
14130s/[ ]*$/:/
14131s/:\$(srcdir):/:/g
14132s/:\${srcdir}:/:/g
14133s/:@srcdir@:/:/g
14134s/^:*//
Lev Walkin27fd0b62007-08-27 23:57:45 +000014135s/:*$//
Lev Walkinaef10c32014-01-14 01:47:25 -080014136x
14137s/\(=[ ]*\).*/\1/
14138G
14139s/\n//
Lev Walkin27fd0b62007-08-27 23:57:45 +000014140s/^[^=]*=[ ]*$//
14141}'
14142fi
14143
Lev Walkinb3751942012-09-02 19:36:47 -070014144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014145fi # test -n "$CONFIG_FILES"
14146
Lev Walkinb3751942012-09-02 19:36:47 -070014147# Set up the scripts for CONFIG_HEADERS section.
14148# No need to generate them if there are no CONFIG_HEADERS.
14149# This happens for instance with `./config.status Makefile'.
14150if test -n "$CONFIG_HEADERS"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014151cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Lev Walkinb3751942012-09-02 19:36:47 -070014152BEGIN {
14153_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014154
Lev Walkinb3751942012-09-02 19:36:47 -070014155# Transform confdefs.h into an awk script `defines.awk', embedded as
14156# here-document in config.status, that substitutes the proper values into
14157# config.h.in to produce config.h.
14158
14159# Create a delimiter string that does not exist in confdefs.h, to ease
14160# handling of long lines.
14161ac_delim='%!_!# '
14162for ac_last_try in false false :; do
Lev Walkinaef10c32014-01-14 01:47:25 -080014163 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14164 if test -z "$ac_tt"; then
Lev Walkinb3751942012-09-02 19:36:47 -070014165 break
14166 elif $ac_last_try; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014167 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -070014168 else
14169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14170 fi
14171done
14172
14173# For the awk script, D is an array of macro values keyed by name,
14174# likewise P contains macro parameters if any. Preserve backslash
14175# newline sequences.
14176
14177ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14178sed -n '
14179s/.\{148\}/&'"$ac_delim"'/g
14180t rset
14181:rset
14182s/^[ ]*#[ ]*define[ ][ ]*/ /
14183t def
14184d
14185:def
14186s/\\$//
14187t bsnl
14188s/["\\]/\\&/g
14189s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14190D["\1"]=" \3"/p
14191s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14192d
14193:bsnl
14194s/["\\]/\\&/g
14195s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14196D["\1"]=" \3\\\\\\n"\\/p
14197t cont
14198s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14199t cont
14200d
14201:cont
14202n
14203s/.\{148\}/&'"$ac_delim"'/g
14204t clear
14205:clear
14206s/\\$//
14207t bsnlc
14208s/["\\]/\\&/g; s/^/"/; s/$/"/p
14209d
14210:bsnlc
14211s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14212b cont
14213' <confdefs.h | sed '
14214s/'"$ac_delim"'/"\\\
14215"/g' >>$CONFIG_STATUS || ac_write_fail=1
14216
14217cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14218 for (key in D) D_is_set[key] = 1
14219 FS = ""
14220}
14221/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14222 line = \$ 0
14223 split(line, arg, " ")
14224 if (arg[1] == "#") {
14225 defundef = arg[2]
14226 mac1 = arg[3]
14227 } else {
14228 defundef = substr(arg[1], 2)
14229 mac1 = arg[2]
14230 }
14231 split(mac1, mac2, "(") #)
14232 macro = mac2[1]
14233 prefix = substr(line, 1, index(line, defundef) - 1)
14234 if (D_is_set[macro]) {
14235 # Preserve the white space surrounding the "#".
14236 print prefix "define", macro P[macro] D[macro]
14237 next
14238 } else {
14239 # Replace #undef with comments. This is necessary, for example,
14240 # in the case of _POSIX_SOURCE, which is predefined and required
14241 # on some systems where configure will not decide to define it.
14242 if (defundef == "undef") {
14243 print "/*", prefix defundef, macro, "*/"
14244 next
14245 }
14246 }
14247}
14248{ print }
14249_ACAWK
14250_ACEOF
14251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinaef10c32014-01-14 01:47:25 -080014252 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -070014253fi # test -n "$CONFIG_HEADERS"
14254
14255
14256eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14257shift
14258for ac_tag
Lev Walkin27fd0b62007-08-27 23:57:45 +000014259do
14260 case $ac_tag in
14261 :[FHLC]) ac_mode=$ac_tag; continue;;
14262 esac
14263 case $ac_mode$ac_tag in
14264 :[FHL]*:*);;
Lev Walkinaef10c32014-01-14 01:47:25 -080014265 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014266 :[FH]-) ac_tag=-:-;;
14267 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14268 esac
14269 ac_save_IFS=$IFS
14270 IFS=:
14271 set x $ac_tag
14272 IFS=$ac_save_IFS
14273 shift
14274 ac_file=$1
14275 shift
14276
14277 case $ac_mode in
14278 :L) ac_source=$1;;
14279 :[FH])
14280 ac_file_inputs=
14281 for ac_f
14282 do
14283 case $ac_f in
Lev Walkinaef10c32014-01-14 01:47:25 -080014284 -) ac_f="$ac_tmp/stdin";;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014285 *) # Look for the file first in the build tree, then in the source tree
14286 # (if the path is not absolute). The absolute path cannot be DOS-style,
14287 # because $ac_f cannot contain `:'.
14288 test -f "$ac_f" ||
14289 case $ac_f in
14290 [\\/$]*) false;;
14291 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14292 esac ||
Lev Walkinaef10c32014-01-14 01:47:25 -080014293 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014294 esac
Lev Walkinb3751942012-09-02 19:36:47 -070014295 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Lev Walkinaef10c32014-01-14 01:47:25 -080014296 as_fn_append ac_file_inputs " '$ac_f'"
Lev Walkin27fd0b62007-08-27 23:57:45 +000014297 done
14298
14299 # Let's still pretend it is `configure' which instantiates (i.e., don't
14300 # use $as_me), people would be surprised to read:
14301 # /* config.h. Generated by config.status. */
Lev Walkinb3751942012-09-02 19:36:47 -070014302 configure_input='Generated from '`
14303 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14304 `' by configure.'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014305 if test x"$ac_file" != x-; then
14306 configure_input="$ac_file. $configure_input"
Lev Walkinaef10c32014-01-14 01:47:25 -080014307 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014308$as_echo "$as_me: creating $ac_file" >&6;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000014309 fi
Lev Walkinb3751942012-09-02 19:36:47 -070014310 # Neutralize special characters interpreted by sed in replacement strings.
14311 case $configure_input in #(
14312 *\&* | *\|* | *\\* )
14313 ac_sed_conf_input=`$as_echo "$configure_input" |
14314 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14315 *) ac_sed_conf_input=$configure_input;;
14316 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000014317
14318 case $ac_tag in
Lev Walkinaef10c32014-01-14 01:47:25 -080014319 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14320 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014321 esac
14322 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014323 esac
14324
Lev Walkin27fd0b62007-08-27 23:57:45 +000014325 ac_dir=`$as_dirname -- "$ac_file" ||
Lev Walkinf15320b2004-06-03 03:38:44 +000014326$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000014327 X"$ac_file" : 'X\(//\)[^/]' \| \
14328 X"$ac_file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014329 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070014330$as_echo X"$ac_file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14332 s//\1/
14333 q
14334 }
14335 /^X\(\/\/\)[^/].*/{
14336 s//\1/
14337 q
14338 }
14339 /^X\(\/\/\)$/{
14340 s//\1/
14341 q
14342 }
14343 /^X\(\/\).*/{
14344 s//\1/
14345 q
14346 }
14347 s/.*/./; q'`
Lev Walkinaef10c32014-01-14 01:47:25 -080014348 as_dir="$ac_dir"; as_fn_mkdir_p
Lev Walkinf15320b2004-06-03 03:38:44 +000014349 ac_builddir=.
14350
Lev Walkin27fd0b62007-08-27 23:57:45 +000014351case "$ac_dir" in
14352.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14353*)
Lev Walkinb3751942012-09-02 19:36:47 -070014354 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014355 # A ".." for each directory in $ac_dir_suffix.
Lev Walkinb3751942012-09-02 19:36:47 -070014356 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014357 case $ac_top_builddir_sub in
14358 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14359 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14360 esac ;;
14361esac
14362ac_abs_top_builddir=$ac_pwd
14363ac_abs_builddir=$ac_pwd$ac_dir_suffix
14364# for backward compatibility:
14365ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +000014366
14367case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +000014368 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +000014369 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014370 ac_top_srcdir=$ac_top_builddir_sub
14371 ac_abs_top_srcdir=$ac_pwd ;;
14372 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +000014373 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014374 ac_top_srcdir=$srcdir
14375 ac_abs_top_srcdir=$srcdir ;;
14376 *) # Relative name.
14377 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14378 ac_top_srcdir=$ac_top_build_prefix$srcdir
14379 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014380esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000014381ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +000014382
Lev Walkinf15320b2004-06-03 03:38:44 +000014383
Lev Walkin27fd0b62007-08-27 23:57:45 +000014384 case $ac_mode in
14385 :F)
14386 #
14387 # CONFIG_FILE
14388 #
Lev Walkinf15320b2004-06-03 03:38:44 +000014389
14390 case $INSTALL in
14391 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014392 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014393 esac
Lev Walkin4c776e52010-11-08 02:07:31 -080014394 ac_MKDIR_P=$MKDIR_P
14395 case $MKDIR_P in
14396 [\\/$]* | ?:[\\/]* ) ;;
14397 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14398 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000014399_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014400
Lev Walkinb3751942012-09-02 19:36:47 -070014401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014402# If the template does not know about datarootdir, expand it.
14403# FIXME: This hack should be removed a few years after 2.60.
14404ac_datarootdir_hack=; ac_datarootdir_seen=
Lev Walkinb3751942012-09-02 19:36:47 -070014405ac_sed_dataroot='
14406/datarootdir/ {
Lev Walkin27fd0b62007-08-27 23:57:45 +000014407 p
14408 q
14409}
14410/@datadir@/p
14411/@docdir@/p
14412/@infodir@/p
14413/@localedir@/p
Lev Walkinaef10c32014-01-14 01:47:25 -080014414/@mandir@/p'
Lev Walkinb3751942012-09-02 19:36:47 -070014415case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Lev Walkin27fd0b62007-08-27 23:57:45 +000014416*datarootdir*) ac_datarootdir_seen=yes;;
14417*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Lev Walkinaef10c32014-01-14 01:47:25 -080014418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014419$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000014420_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014422 ac_datarootdir_hack='
14423 s&@datadir@&$datadir&g
14424 s&@docdir@&$docdir&g
14425 s&@infodir@&$infodir&g
14426 s&@localedir@&$localedir&g
14427 s&@mandir@&$mandir&g
Lev Walkinaef10c32014-01-14 01:47:25 -080014428 s&\\\${datarootdir}&$datarootdir&g' ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014429esac
14430_ACEOF
14431
14432# Neutralize VPATH when `$srcdir' = `.'.
14433# Shell code in configure.ac might set extrasub.
14434# FIXME: do we really want to maintain this feature?
Lev Walkinb3751942012-09-02 19:36:47 -070014435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14436ac_sed_extra="$ac_vpsub
Lev Walkinf15320b2004-06-03 03:38:44 +000014437$extrasub
14438_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014440:t
14441/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Lev Walkinb3751942012-09-02 19:36:47 -070014442s|@configure_input@|$ac_sed_conf_input|;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000014443s&@top_builddir@&$ac_top_builddir_sub&;t t
Lev Walkinb3751942012-09-02 19:36:47 -070014444s&@top_build_prefix@&$ac_top_build_prefix&;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000014445s&@srcdir@&$ac_srcdir&;t t
14446s&@abs_srcdir@&$ac_abs_srcdir&;t t
14447s&@top_srcdir@&$ac_top_srcdir&;t t
14448s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14449s&@builddir@&$ac_builddir&;t t
14450s&@abs_builddir@&$ac_abs_builddir&;t t
14451s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14452s&@INSTALL@&$ac_INSTALL&;t t
Lev Walkin4c776e52010-11-08 02:07:31 -080014453s&@MKDIR_P@&$ac_MKDIR_P&;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000014454$ac_datarootdir_hack
Lev Walkinb3751942012-09-02 19:36:47 -070014455"
Lev Walkinaef10c32014-01-14 01:47:25 -080014456eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14457 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +000014458
Lev Walkin27fd0b62007-08-27 23:57:45 +000014459test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Lev Walkinaef10c32014-01-14 01:47:25 -080014460 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14461 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14462 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14464which seems to be undefined. Please make sure it is defined" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014465$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Lev Walkinaef10c32014-01-14 01:47:25 -080014466which seems to be undefined. Please make sure it is defined" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000014467
Lev Walkinaef10c32014-01-14 01:47:25 -080014468 rm -f "$ac_tmp/stdin"
Lev Walkinf15320b2004-06-03 03:38:44 +000014469 case $ac_file in
Lev Walkinaef10c32014-01-14 01:47:25 -080014470 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14471 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Lev Walkinb3751942012-09-02 19:36:47 -070014472 esac \
Lev Walkinaef10c32014-01-14 01:47:25 -080014473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014474 ;;
14475 :H)
14476 #
14477 # CONFIG_HEADER
14478 #
Lev Walkinf15320b2004-06-03 03:38:44 +000014479 if test x"$ac_file" != x-; then
Lev Walkinb3751942012-09-02 19:36:47 -070014480 {
14481 $as_echo "/* $configure_input */" \
Lev Walkinaef10c32014-01-14 01:47:25 -080014482 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14483 } >"$ac_tmp/config.h" \
14484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14485 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014487$as_echo "$as_me: $ac_file is unchanged" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000014488 else
Lev Walkinb3751942012-09-02 19:36:47 -070014489 rm -f "$ac_file"
Lev Walkinaef10c32014-01-14 01:47:25 -080014490 mv "$ac_tmp/config.h" "$ac_file" \
14491 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +000014492 fi
14493 else
Lev Walkinb3751942012-09-02 19:36:47 -070014494 $as_echo "/* $configure_input */" \
Lev Walkinaef10c32014-01-14 01:47:25 -080014495 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14496 || as_fn_error $? "could not create -" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +000014497 fi
Lev Walkinb3751942012-09-02 19:36:47 -070014498# Compute "$ac_file"'s index in $config_headers.
14499_am_arg="$ac_file"
Lev Walkin8e8b5482004-06-17 23:42:48 +000014500_am_stamp_count=1
14501for _am_header in $config_headers :; do
14502 case $_am_header in
Lev Walkinb3751942012-09-02 19:36:47 -070014503 $_am_arg | $_am_arg:* )
Lev Walkin8e8b5482004-06-17 23:42:48 +000014504 break ;;
14505 * )
14506 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014507 esac
14508done
Lev Walkinb3751942012-09-02 19:36:47 -070014509echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14510$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14511 X"$_am_arg" : 'X\(//\)[^/]' \| \
14512 X"$_am_arg" : 'X\(//\)$' \| \
14513 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14514$as_echo X"$_am_arg" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14516 s//\1/
14517 q
14518 }
14519 /^X\(\/\/\)[^/].*/{
14520 s//\1/
14521 q
14522 }
14523 /^X\(\/\/\)$/{
14524 s//\1/
14525 q
14526 }
14527 /^X\(\/\).*/{
14528 s//\1/
14529 q
14530 }
14531 s/.*/./; q'`/stamp-h$_am_stamp_count
14532 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014533
Lev Walkinaef10c32014-01-14 01:47:25 -080014534 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014535$as_echo "$as_me: executing $ac_file commands" >&6;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000014536 ;;
14537 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000014538
14539
Lev Walkin27fd0b62007-08-27 23:57:45 +000014540 case $ac_file$ac_mode in
Lev Walkinb3751942012-09-02 19:36:47 -070014541 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14542 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14543 # are listed without --file. Let's play safe and only enable the eval
14544 # if we detect the quoting.
14545 case $CONFIG_FILES in
14546 *\'*) eval set x "$CONFIG_FILES" ;;
14547 *) set x $CONFIG_FILES ;;
14548 esac
14549 shift
14550 for mf
14551 do
14552 # Strip MF so we end up with the name of the file.
14553 mf=`echo "$mf" | sed -e 's/:.*$//'`
14554 # Check whether this is an Automake generated Makefile or not.
14555 # We used to match only the files named `Makefile.in', but
14556 # some people rename them; so instead we look at the file content.
14557 # Grep'ing the first line is not enough: some people post-process
14558 # each Makefile.in and add a new line on top of each file to say so.
14559 # Grep'ing the whole file is not good either: AIX grep has a line
14560 # limit of 2048, but all sed's we know have understand at least 4000.
14561 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14562 dirpart=`$as_dirname -- "$mf" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000014563$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14564 X"$mf" : 'X\(//\)[^/]' \| \
14565 X"$mf" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014566 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070014567$as_echo X"$mf" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14569 s//\1/
14570 q
14571 }
14572 /^X\(\/\/\)[^/].*/{
14573 s//\1/
14574 q
14575 }
14576 /^X\(\/\/\)$/{
14577 s//\1/
14578 q
14579 }
14580 /^X\(\/\).*/{
14581 s//\1/
14582 q
14583 }
14584 s/.*/./; q'`
Lev Walkinb3751942012-09-02 19:36:47 -070014585 else
14586 continue
14587 fi
14588 # Extract the definition of DEPDIR, am__include, and am__quote
14589 # from the Makefile without running `make'.
14590 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14591 test -z "$DEPDIR" && continue
14592 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14593 test -z "am__include" && continue
14594 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14595 # When using ansi2knr, U may be empty or an underscore; expand it
14596 U=`sed -n 's/^U = //p' < "$mf"`
14597 # Find all dependency output files, they are included files with
14598 # $(DEPDIR) in their names. We invoke sed twice because it is the
14599 # simplest approach to changing $(DEPDIR) to its actual value in the
14600 # expansion.
14601 for file in `sed -n "
14602 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14603 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14604 # Make sure the directory exists.
14605 test -f "$dirpart/$file" && continue
14606 fdir=`$as_dirname -- "$file" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000014607$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14608 X"$file" : 'X\(//\)[^/]' \| \
14609 X"$file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014610 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070014611$as_echo X"$file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14613 s//\1/
14614 q
14615 }
14616 /^X\(\/\/\)[^/].*/{
14617 s//\1/
14618 q
14619 }
14620 /^X\(\/\/\)$/{
14621 s//\1/
14622 q
14623 }
14624 /^X\(\/\).*/{
14625 s//\1/
14626 q
14627 }
14628 s/.*/./; q'`
Lev Walkinaef10c32014-01-14 01:47:25 -080014629 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Lev Walkinb3751942012-09-02 19:36:47 -070014630 # echo "creating $dirpart/$file"
14631 echo '# dummy' > "$dirpart/$file"
14632 done
Lev Walkinf15320b2004-06-03 03:38:44 +000014633 done
Lev Walkinb3751942012-09-02 19:36:47 -070014634}
Lev Walkinf15320b2004-06-03 03:38:44 +000014635 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070014636 "libtool":C)
14637
14638 # See if we are running on zsh, and set the options which allow our
14639 # commands through without removal of \ escapes.
14640 if test -n "${ZSH_VERSION+set}" ; then
14641 setopt NO_GLOB_SUBST
14642 fi
14643
14644 cfgfile="${ofile}T"
Lev Walkinaef10c32014-01-14 01:47:25 -080014645 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14646 $RM "$cfgfile"
Lev Walkin4da95cf2010-10-16 02:46:32 -070014647
14648 cat <<_LT_EOF >> "$cfgfile"
14649#! $SHELL
14650
14651# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14652# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14653# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14654# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14655#
14656# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Lev Walkinaef10c32014-01-14 01:47:25 -080014657# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14658# Inc.
Lev Walkin4da95cf2010-10-16 02:46:32 -070014659# Written by Gordon Matzigkeit, 1996
14660#
14661# This file is part of GNU Libtool.
14662#
14663# GNU Libtool is free software; you can redistribute it and/or
14664# modify it under the terms of the GNU General Public License as
14665# published by the Free Software Foundation; either version 2 of
14666# the License, or (at your option) any later version.
14667#
14668# As a special exception to the GNU General Public License,
14669# if you distribute this file as part of a program or library that
14670# is built using GNU Libtool, you may include this file under the
14671# same distribution terms that you use for the rest of that program.
14672#
14673# GNU Libtool is distributed in the hope that it will be useful,
14674# but WITHOUT ANY WARRANTY; without even the implied warranty of
14675# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14676# GNU General Public License for more details.
14677#
14678# You should have received a copy of the GNU General Public License
14679# along with GNU Libtool; see the file COPYING. If not, a copy
14680# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14681# obtained by writing to the Free Software Foundation, Inc.,
14682# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14683
14684
14685# The names of the tagged configurations supported by this script.
14686available_tags=""
14687
14688# ### BEGIN LIBTOOL CONFIG
14689
14690# Which release of libtool.m4 was used?
14691macro_version=$macro_version
14692macro_revision=$macro_revision
14693
14694# Whether or not to build shared libraries.
14695build_libtool_libs=$enable_shared
14696
14697# Whether or not to build static libraries.
14698build_old_libs=$enable_static
14699
14700# What type of objects to build.
14701pic_mode=$pic_mode
14702
14703# Whether or not to optimize for fast installation.
14704fast_install=$enable_fast_install
14705
Lev Walkinaef10c32014-01-14 01:47:25 -080014706# Shell to use when invoking shell scripts.
14707SHELL=$lt_SHELL
14708
14709# An echo program that protects backslashes.
14710ECHO=$lt_ECHO
14711
Lev Walkin4da95cf2010-10-16 02:46:32 -070014712# The host system.
14713host_alias=$host_alias
14714host=$host
14715host_os=$host_os
14716
14717# The build system.
14718build_alias=$build_alias
14719build=$build
14720build_os=$build_os
14721
14722# A sed program that does not truncate output.
14723SED=$lt_SED
14724
14725# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14726Xsed="\$SED -e 1s/^X//"
14727
14728# A grep program that handles long lines.
14729GREP=$lt_GREP
14730
14731# An ERE matcher.
14732EGREP=$lt_EGREP
14733
14734# A literal string matcher.
14735FGREP=$lt_FGREP
14736
14737# A BSD- or MS-compatible name lister.
14738NM=$lt_NM
14739
14740# Whether we need soft or hard links.
14741LN_S=$lt_LN_S
14742
14743# What is the maximum length of a command?
14744max_cmd_len=$max_cmd_len
14745
14746# Object file suffix (normally "o").
14747objext=$ac_objext
14748
14749# Executable file suffix (normally "").
14750exeext=$exeext
14751
14752# whether the shell understands "unset".
14753lt_unset=$lt_unset
14754
14755# turn spaces into newlines.
14756SP2NL=$lt_lt_SP2NL
14757
14758# turn newlines into spaces.
14759NL2SP=$lt_lt_NL2SP
14760
Lev Walkinaef10c32014-01-14 01:47:25 -080014761# convert \$build file names to \$host format.
14762to_host_file_cmd=$lt_cv_to_host_file_cmd
14763
14764# convert \$build files to toolchain format.
14765to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14766
14767# An object symbol dumper.
14768OBJDUMP=$lt_OBJDUMP
Lev Walkin4da95cf2010-10-16 02:46:32 -070014769
14770# Method to check whether dependent libraries are shared objects.
14771deplibs_check_method=$lt_deplibs_check_method
14772
Lev Walkinaef10c32014-01-14 01:47:25 -080014773# Command to use when deplibs_check_method = "file_magic".
Lev Walkin4da95cf2010-10-16 02:46:32 -070014774file_magic_cmd=$lt_file_magic_cmd
14775
Lev Walkinaef10c32014-01-14 01:47:25 -080014776# How to find potential files when deplibs_check_method = "file_magic".
14777file_magic_glob=$lt_file_magic_glob
14778
14779# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14780want_nocaseglob=$lt_want_nocaseglob
14781
14782# DLL creation program.
14783DLLTOOL=$lt_DLLTOOL
14784
14785# Command to associate shared and link libraries.
14786sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14787
Lev Walkin4da95cf2010-10-16 02:46:32 -070014788# The archiver.
14789AR=$lt_AR
Lev Walkinaef10c32014-01-14 01:47:25 -080014790
14791# Flags to create an archive.
Lev Walkin4da95cf2010-10-16 02:46:32 -070014792AR_FLAGS=$lt_AR_FLAGS
14793
Lev Walkinaef10c32014-01-14 01:47:25 -080014794# How to feed a file listing to the archiver.
14795archiver_list_spec=$lt_archiver_list_spec
14796
Lev Walkin4da95cf2010-10-16 02:46:32 -070014797# A symbol stripping program.
14798STRIP=$lt_STRIP
14799
14800# Commands used to install an old-style archive.
14801RANLIB=$lt_RANLIB
14802old_postinstall_cmds=$lt_old_postinstall_cmds
14803old_postuninstall_cmds=$lt_old_postuninstall_cmds
14804
Lev Walkinaef10c32014-01-14 01:47:25 -080014805# Whether to use a lock for old archive extraction.
14806lock_old_archive_extraction=$lock_old_archive_extraction
14807
Lev Walkin4da95cf2010-10-16 02:46:32 -070014808# A C compiler.
14809LTCC=$lt_CC
14810
14811# LTCC compiler flags.
14812LTCFLAGS=$lt_CFLAGS
14813
14814# Take the output of nm and produce a listing of raw symbols and C names.
14815global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14816
14817# Transform the output of nm in a proper C declaration.
14818global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14819
14820# Transform the output of nm in a C name address pair.
14821global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14822
14823# Transform the output of nm in a C name address pair when lib prefix is needed.
14824global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14825
Lev Walkinaef10c32014-01-14 01:47:25 -080014826# Specify filename containing input files for \$NM.
14827nm_file_list_spec=$lt_nm_file_list_spec
14828
14829# The root where to search for dependent libraries,and in which our libraries should be installed.
14830lt_sysroot=$lt_sysroot
14831
Lev Walkin4da95cf2010-10-16 02:46:32 -070014832# The name of the directory that contains temporary libtool files.
14833objdir=$objdir
14834
14835# Used to examine libraries when file_magic_cmd begins with "file".
14836MAGIC_CMD=$MAGIC_CMD
14837
14838# Must we lock files when doing compilation?
14839need_locks=$lt_need_locks
14840
Lev Walkinaef10c32014-01-14 01:47:25 -080014841# Manifest tool.
14842MANIFEST_TOOL=$lt_MANIFEST_TOOL
14843
Lev Walkin4da95cf2010-10-16 02:46:32 -070014844# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14845DSYMUTIL=$lt_DSYMUTIL
14846
14847# Tool to change global to local symbols on Mac OS X.
14848NMEDIT=$lt_NMEDIT
14849
14850# Tool to manipulate fat objects and archives on Mac OS X.
14851LIPO=$lt_LIPO
14852
14853# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14854OTOOL=$lt_OTOOL
14855
14856# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14857OTOOL64=$lt_OTOOL64
14858
14859# Old archive suffix (normally "a").
14860libext=$libext
14861
14862# Shared library suffix (normally ".so").
14863shrext_cmds=$lt_shrext_cmds
14864
14865# The commands to extract the exported symbol list from a shared archive.
14866extract_expsyms_cmds=$lt_extract_expsyms_cmds
14867
14868# Variables whose values should be saved in libtool wrapper scripts and
14869# restored at link time.
14870variables_saved_for_relink=$lt_variables_saved_for_relink
14871
14872# Do we need the "lib" prefix for modules?
14873need_lib_prefix=$need_lib_prefix
14874
14875# Do we need a version for libraries?
14876need_version=$need_version
14877
14878# Library versioning type.
14879version_type=$version_type
14880
14881# Shared library runtime path variable.
14882runpath_var=$runpath_var
14883
14884# Shared library path variable.
14885shlibpath_var=$shlibpath_var
14886
14887# Is shlibpath searched before the hard-coded library search path?
14888shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14889
14890# Format of library name prefix.
14891libname_spec=$lt_libname_spec
14892
14893# List of archive names. First name is the real one, the rest are links.
14894# The last name is the one that the linker finds with -lNAME
14895library_names_spec=$lt_library_names_spec
14896
14897# The coded name of the library, if different from the real name.
14898soname_spec=$lt_soname_spec
14899
Lev Walkinaef10c32014-01-14 01:47:25 -080014900# Permission mode override for installation of shared libraries.
14901install_override_mode=$lt_install_override_mode
14902
Lev Walkin4da95cf2010-10-16 02:46:32 -070014903# Command to use after installation of a shared archive.
14904postinstall_cmds=$lt_postinstall_cmds
14905
14906# Command to use after uninstallation of a shared archive.
14907postuninstall_cmds=$lt_postuninstall_cmds
14908
14909# Commands used to finish a libtool library installation in a directory.
14910finish_cmds=$lt_finish_cmds
14911
14912# As "finish_cmds", except a single script fragment to be evaled but
14913# not shown.
14914finish_eval=$lt_finish_eval
14915
14916# Whether we should hardcode library paths into libraries.
14917hardcode_into_libs=$hardcode_into_libs
14918
14919# Compile-time system search path for libraries.
14920sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14921
14922# Run-time system search path for libraries.
14923sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14924
14925# Whether dlopen is supported.
14926dlopen_support=$enable_dlopen
14927
14928# Whether dlopen of programs is supported.
14929dlopen_self=$enable_dlopen_self
14930
14931# Whether dlopen of statically linked programs is supported.
14932dlopen_self_static=$enable_dlopen_self_static
14933
14934# Commands to strip libraries.
14935old_striplib=$lt_old_striplib
14936striplib=$lt_striplib
14937
14938
14939# The linker used to build libraries.
14940LD=$lt_LD
14941
Lev Walkinaef10c32014-01-14 01:47:25 -080014942# How to create reloadable object files.
14943reload_flag=$lt_reload_flag
14944reload_cmds=$lt_reload_cmds
14945
Lev Walkin4da95cf2010-10-16 02:46:32 -070014946# Commands used to build an old-style archive.
14947old_archive_cmds=$lt_old_archive_cmds
14948
14949# A language specific compiler.
14950CC=$lt_compiler
14951
14952# Is the compiler the GNU compiler?
14953with_gcc=$GCC
14954
14955# Compiler flag to turn off builtin functions.
14956no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14957
Lev Walkin4c776e52010-11-08 02:07:31 -080014958# Additional compiler flags for building library objects.
14959pic_flag=$lt_lt_prog_compiler_pic
14960
Lev Walkinaef10c32014-01-14 01:47:25 -080014961# How to pass a linker flag through the compiler.
14962wl=$lt_lt_prog_compiler_wl
14963
Lev Walkin4da95cf2010-10-16 02:46:32 -070014964# Compiler flag to prevent dynamic linking.
14965link_static_flag=$lt_lt_prog_compiler_static
14966
14967# Does compiler simultaneously support -c and -o options?
14968compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14969
14970# Whether or not to add -lc for building shared libraries.
14971build_libtool_need_lc=$archive_cmds_need_lc
14972
14973# Whether or not to disallow shared libs when runtime libs are static.
14974allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14975
14976# Compiler flag to allow reflexive dlopens.
14977export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14978
14979# Compiler flag to generate shared objects directly from archives.
14980whole_archive_flag_spec=$lt_whole_archive_flag_spec
14981
14982# Whether the compiler copes with passing no objects directly.
14983compiler_needs_object=$lt_compiler_needs_object
14984
14985# Create an old-style archive from a shared archive.
14986old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14987
14988# Create a temporary old-style archive to link instead of a shared archive.
14989old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14990
14991# Commands used to build a shared archive.
14992archive_cmds=$lt_archive_cmds
14993archive_expsym_cmds=$lt_archive_expsym_cmds
14994
14995# Commands used to build a loadable module if different from building
14996# a shared archive.
14997module_cmds=$lt_module_cmds
14998module_expsym_cmds=$lt_module_expsym_cmds
14999
15000# Whether we are building with GNU ld or not.
15001with_gnu_ld=$lt_with_gnu_ld
15002
15003# Flag that allows shared libraries with undefined symbols to be built.
15004allow_undefined_flag=$lt_allow_undefined_flag
15005
15006# Flag that enforces no undefined symbols.
15007no_undefined_flag=$lt_no_undefined_flag
15008
15009# Flag to hardcode \$libdir into a binary during linking.
15010# This must work even if \$libdir does not exist
15011hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15012
15013# If ld is used when linking, flag to hardcode \$libdir into a binary
15014# during linking. This must work even if \$libdir does not exist.
15015hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15016
15017# Whether we need a single "-rpath" flag with a separated argument.
15018hardcode_libdir_separator=$lt_hardcode_libdir_separator
15019
15020# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15021# DIR into the resulting binary.
15022hardcode_direct=$hardcode_direct
15023
15024# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15025# DIR into the resulting binary and the resulting library dependency is
15026# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15027# library is relocated.
15028hardcode_direct_absolute=$hardcode_direct_absolute
15029
15030# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15031# into the resulting binary.
15032hardcode_minus_L=$hardcode_minus_L
15033
15034# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15035# into the resulting binary.
15036hardcode_shlibpath_var=$hardcode_shlibpath_var
15037
15038# Set to "yes" if building a shared library automatically hardcodes DIR
15039# into the library and all subsequent libraries and executables linked
15040# against it.
15041hardcode_automatic=$hardcode_automatic
15042
15043# Set to yes if linker adds runtime paths of dependent libraries
15044# to runtime path list.
15045inherit_rpath=$inherit_rpath
15046
15047# Whether libtool must link a program against all its dependency libraries.
15048link_all_deplibs=$link_all_deplibs
15049
15050# Set to "yes" if exported symbols are required.
15051always_export_symbols=$always_export_symbols
15052
15053# The commands to list exported symbols.
15054export_symbols_cmds=$lt_export_symbols_cmds
15055
15056# Symbols that should not be listed in the preloaded symbols.
15057exclude_expsyms=$lt_exclude_expsyms
15058
15059# Symbols that must always be exported.
15060include_expsyms=$lt_include_expsyms
15061
15062# Commands necessary for linking programs (against libraries) with templates.
15063prelink_cmds=$lt_prelink_cmds
15064
Lev Walkinaef10c32014-01-14 01:47:25 -080015065# Commands necessary for finishing linking programs.
15066postlink_cmds=$lt_postlink_cmds
15067
Lev Walkin4da95cf2010-10-16 02:46:32 -070015068# Specify filename containing input files.
15069file_list_spec=$lt_file_list_spec
15070
15071# How to hardcode a shared library path into an executable.
15072hardcode_action=$hardcode_action
15073
15074# ### END LIBTOOL CONFIG
15075
15076_LT_EOF
15077
15078 case $host_os in
15079 aix3*)
15080 cat <<\_LT_EOF >> "$cfgfile"
15081# AIX sometimes has problems with the GCC collect2 program. For some
15082# reason, if we set the COLLECT_NAMES environment variable, the problems
15083# vanish in a puff of smoke.
15084if test "X${COLLECT_NAMES+set}" != Xset; then
15085 COLLECT_NAMES=
15086 export COLLECT_NAMES
15087fi
15088_LT_EOF
15089 ;;
15090 esac
15091
15092
15093ltmain="$ac_aux_dir/ltmain.sh"
15094
15095
15096 # We use sed instead of cat because bash on DJGPP gets confused if
15097 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15098 # text mode, it properly converts lines to CR/LF. This bash problem
15099 # is reportedly fixed, but why not run on old versions too?
Lev Walkinaef10c32014-01-14 01:47:25 -080015100 sed '$q' "$ltmain" >> "$cfgfile" \
15101 || (rm -f "$cfgfile"; exit 1)
Lev Walkin4da95cf2010-10-16 02:46:32 -070015102
Lev Walkinaef10c32014-01-14 01:47:25 -080015103 if test x"$xsi_shell" = xyes; then
15104 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15105func_dirname ()\
15106{\
15107\ case ${1} in\
15108\ */*) func_dirname_result="${1%/*}${2}" ;;\
15109\ * ) func_dirname_result="${3}" ;;\
15110\ esac\
15111} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15112 && mv -f "$cfgfile.tmp" "$cfgfile" \
15113 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15114test 0 -eq $? || _lt_function_replace_fail=:
Lev Walkin4da95cf2010-10-16 02:46:32 -070015115
15116
Lev Walkinaef10c32014-01-14 01:47:25 -080015117 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15118func_basename ()\
15119{\
15120\ func_basename_result="${1##*/}"\
15121} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15122 && mv -f "$cfgfile.tmp" "$cfgfile" \
15123 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15124test 0 -eq $? || _lt_function_replace_fail=:
Lev Walkin4da95cf2010-10-16 02:46:32 -070015125
15126
Lev Walkinaef10c32014-01-14 01:47:25 -080015127 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15128func_dirname_and_basename ()\
15129{\
15130\ case ${1} in\
15131\ */*) func_dirname_result="${1%/*}${2}" ;;\
15132\ * ) func_dirname_result="${3}" ;;\
15133\ esac\
15134\ func_basename_result="${1##*/}"\
15135} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15136 && mv -f "$cfgfile.tmp" "$cfgfile" \
15137 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15138test 0 -eq $? || _lt_function_replace_fail=:
Lev Walkin4da95cf2010-10-16 02:46:32 -070015139
Lev Walkinaef10c32014-01-14 01:47:25 -080015140
15141 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15142func_stripname ()\
15143{\
15144\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15145\ # positional parameters, so assign one to ordinary parameter first.\
15146\ func_stripname_result=${3}\
15147\ func_stripname_result=${func_stripname_result#"${1}"}\
15148\ func_stripname_result=${func_stripname_result%"${2}"}\
15149} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15150 && mv -f "$cfgfile.tmp" "$cfgfile" \
15151 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15152test 0 -eq $? || _lt_function_replace_fail=:
15153
15154
15155 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15156func_split_long_opt ()\
15157{\
15158\ func_split_long_opt_name=${1%%=*}\
15159\ func_split_long_opt_arg=${1#*=}\
15160} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15161 && mv -f "$cfgfile.tmp" "$cfgfile" \
15162 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15163test 0 -eq $? || _lt_function_replace_fail=:
15164
15165
15166 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15167func_split_short_opt ()\
15168{\
15169\ func_split_short_opt_arg=${1#??}\
15170\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15171} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15172 && mv -f "$cfgfile.tmp" "$cfgfile" \
15173 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15174test 0 -eq $? || _lt_function_replace_fail=:
15175
15176
15177 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15178func_lo2o ()\
15179{\
15180\ case ${1} in\
15181\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15182\ *) func_lo2o_result=${1} ;;\
15183\ esac\
15184} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15185 && mv -f "$cfgfile.tmp" "$cfgfile" \
15186 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15187test 0 -eq $? || _lt_function_replace_fail=:
15188
15189
15190 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15191func_xform ()\
15192{\
15193 func_xform_result=${1%.*}.lo\
15194} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15195 && mv -f "$cfgfile.tmp" "$cfgfile" \
15196 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15197test 0 -eq $? || _lt_function_replace_fail=:
15198
15199
15200 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15201func_arith ()\
15202{\
15203 func_arith_result=$(( $* ))\
15204} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15205 && mv -f "$cfgfile.tmp" "$cfgfile" \
15206 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15207test 0 -eq $? || _lt_function_replace_fail=:
15208
15209
15210 sed -e '/^func_len ()$/,/^} # func_len /c\
15211func_len ()\
15212{\
15213 func_len_result=${#1}\
15214} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15215 && mv -f "$cfgfile.tmp" "$cfgfile" \
15216 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15217test 0 -eq $? || _lt_function_replace_fail=:
15218
15219fi
15220
15221if test x"$lt_shell_append" = xyes; then
15222 sed -e '/^func_append ()$/,/^} # func_append /c\
15223func_append ()\
15224{\
15225 eval "${1}+=\\${2}"\
15226} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15227 && mv -f "$cfgfile.tmp" "$cfgfile" \
15228 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15229test 0 -eq $? || _lt_function_replace_fail=:
15230
15231
15232 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15233func_append_quoted ()\
15234{\
15235\ func_quote_for_eval "${2}"\
15236\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15237} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15238 && mv -f "$cfgfile.tmp" "$cfgfile" \
15239 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15240test 0 -eq $? || _lt_function_replace_fail=:
15241
15242
15243 # Save a `func_append' function call where possible by direct use of '+='
15244 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15245 && mv -f "$cfgfile.tmp" "$cfgfile" \
15246 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15247 test 0 -eq $? || _lt_function_replace_fail=:
15248else
15249 # Save a `func_append' function call even when '+=' is not available
15250 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15251 && mv -f "$cfgfile.tmp" "$cfgfile" \
15252 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15253 test 0 -eq $? || _lt_function_replace_fail=:
15254fi
15255
15256if test x"$_lt_function_replace_fail" = x":"; then
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15258$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15259fi
15260
15261
15262 mv -f "$cfgfile" "$ofile" ||
Lev Walkin4da95cf2010-10-16 02:46:32 -070015263 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15264 chmod +x "$ofile"
15265
15266 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000015267
Lev Walkin27fd0b62007-08-27 23:57:45 +000015268 esac
15269done # for ac_tag
15270
Lev Walkinf15320b2004-06-03 03:38:44 +000015271
Lev Walkinaef10c32014-01-14 01:47:25 -080015272as_fn_exit 0
Lev Walkinf15320b2004-06-03 03:38:44 +000015273_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000015274ac_clean_files=$ac_clean_files_save
15275
Lev Walkinb3751942012-09-02 19:36:47 -070015276test $ac_write_fail = 0 ||
Lev Walkinaef10c32014-01-14 01:47:25 -080015277 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -070015278
Lev Walkinf15320b2004-06-03 03:38:44 +000015279
15280# configure is writing to config.log, and then calls config.status.
15281# config.status does its own redirection, appending to config.log.
15282# Unfortunately, on DOS this fails, as config.log is still kept open
15283# by configure, so config.status won't be able to write to it; its
15284# output is simply discarded. So we exec the FD to /dev/null,
15285# effectively closing config.log, so it can be properly (re)opened and
15286# appended to by config.status. When coming back to configure, we
15287# need to make the FD available again.
15288if test "$no_create" != yes; then
15289 ac_cs_success=:
15290 ac_config_status_args=
15291 test "$silent" = yes &&
15292 ac_config_status_args="$ac_config_status_args --quiet"
15293 exec 5>/dev/null
15294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15295 exec 5>>config.log
15296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15297 # would make configure fail if this is the last instruction.
Lev Walkinaef10c32014-01-14 01:47:25 -080015298 $ac_cs_success || as_fn_exit 1
Lev Walkinf15320b2004-06-03 03:38:44 +000015299fi
Lev Walkinb3751942012-09-02 19:36:47 -070015300if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Lev Walkinaef10c32014-01-14 01:47:25 -080015301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070015302$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15303fi
Lev Walkinf15320b2004-06-03 03:38:44 +000015304
15305