blob: 62b4a34050ccb9b352706355dad3556c74662374 [file] [log] [blame]
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for open_pdks 1.0.
4#
5# Report bugs to <github.com/RTimothyEdwards/open_pdks>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_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
43# 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
50 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;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
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
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
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 || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
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 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203else
204 as_have_required=no
205fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210as_found=false
211for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212do
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
226fi
227fi
228 done;;
229 esac
230 as_found=false
231done
232$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235fi; }
236IFS=$as_save_IFS
237
238
239 if test "x$CONFIG_SHELL" != x; then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242# neutralization value for shells without unset; and this also
243# works around shells that cannot unset nonexistent variables.
244# Preserve -v and -x to the replacement shell.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253esac
254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255# Admittedly, this is quite paranoid, since all the known shells bail
256# out after a failed `exec'.
257$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258exit 255
259fi
260
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and
269$0: github.com/RTimothyEdwards/open_pdks about your system,
270$0: including any error possibly output before this
271$0: message. Then install a modern shell, or manually run
272$0: the script under such a shell if you do have one."
273 fi
274 exit 1
275fi
276fi
277fi
278SHELL=${CONFIG_SHELL-/bin/sh}
279export SHELL
280# Unset more variables known to interfere with behavior of common tools.
281CLICOLOR_FORCE= GREP_OPTIONS=
282unset CLICOLOR_FORCE GREP_OPTIONS
283
284## --------------------- ##
285## M4sh Shell Functions. ##
286## --------------------- ##
287# as_fn_unset VAR
288# ---------------
289# Portably unset VAR.
290as_fn_unset ()
291{
292 { eval $1=; unset $1;}
293}
294as_unset=as_fn_unset
295
296# as_fn_set_status STATUS
297# -----------------------
298# Set $? to STATUS, without forking.
299as_fn_set_status ()
300{
301 return $1
302} # as_fn_set_status
303
304# as_fn_exit STATUS
305# -----------------
306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307as_fn_exit ()
308{
309 set +e
310 as_fn_set_status $1
311 exit $1
312} # as_fn_exit
313
314# as_fn_mkdir_p
315# -------------
316# Create "$as_dir" as a directory, including parents if necessary.
317as_fn_mkdir_p ()
318{
319
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336$as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
339 q
340 }
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\).*/{
350 s//\1/
351 q
352 }
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358
359
360} # as_fn_mkdir_p
361
362# as_fn_executable_p FILE
363# -----------------------
364# Test if FILE is an executable regular file.
365as_fn_executable_p ()
366{
367 test -f "$1" && test -x "$1"
368} # as_fn_executable_p
369# as_fn_append VAR VALUE
370# ----------------------
371# Append the text in VALUE to the end of the definition contained in VAR. Take
372# advantage of any shell optimizations that allow amortized linear growth over
373# repeated appends, instead of the typical quadratic growth present in naive
374# implementations.
375if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
377 {
378 eval $1+=\$2
379 }'
380else
381 as_fn_append ()
382 {
383 eval $1=\$$1\$2
384 }
385fi # as_fn_append
386
387# as_fn_arith ARG...
388# ------------------
389# Perform arithmetic evaluation on the ARGs, and store the result in the
390# global $as_val. Take advantage of shells that can avoid forks. The arguments
391# must be portable across $(()) and expr.
392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
394 {
395 as_val=$(( $* ))
396 }'
397else
398 as_fn_arith ()
399 {
400 as_val=`expr "$@" || test $? -eq 1`
401 }
402fi # as_fn_arith
403
404
405# as_fn_error STATUS ERROR [LINENO LOG_FD]
406# ----------------------------------------
407# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409# script with STATUS, using 1 if that was 0.
410as_fn_error ()
411{
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416 fi
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
419} # as_fn_error
420
421if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
423 as_expr=expr
424else
425 as_expr=false
426fi
427
428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429 as_basename=basename
430else
431 as_basename=false
432fi
433
434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436else
437 as_dirname=false
438fi
439
440as_me=`$as_basename -- "$0" ||
441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444$as_echo X/"$0" |
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
447 q
448 }
449 /^X\/\(\/\/\)$/{
450 s//\1/
451 q
452 }
453 /^X\/\(\/\).*/{
454 s//\1/
455 q
456 }
457 s/.*/./; q'`
458
459# Avoid depending upon Character Ranges.
460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463as_cr_digits='0123456789'
464as_cr_alnum=$as_cr_Letters$as_cr_digits
465
466
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
473 p
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
479 b
480 :lineno
481 N
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
500}
501
502ECHO_C= ECHO_N= ECHO_T=
503case `echo -n x` in #(((((
504-n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
511*)
512 ECHO_N='-n';;
513esac
514
515rm -f conf$$ conf$$.exe conf$$.file
516if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
521fi
522if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 as_ln_s='cp -pR'
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
534 as_ln_s='cp -pR'
535 fi
536else
537 as_ln_s='cp -pR'
538fi
539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540rmdir conf$$.dir 2>/dev/null
541
542if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
547fi
548
549as_test_x='test -x'
550as_executable_p=as_fn_executable_p
551
552# Sed expression to map a string onto a valid CPP name.
553as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554
555# Sed expression to map a string onto a valid variable name.
556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
558
559test -n "$DJDIR" || exec 7<&0 </dev/null
560exec 6>&1
561
562# Name of the host.
563# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564# so uname gets run too.
565ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566
567#
568# Initializations.
569#
570ac_default_prefix=/usr/local
571ac_clean_files=
572ac_config_libobj_dir=.
573LIBOBJS=
574cross_compiling=no
575subdirs=
576MFLAGS=
577MAKEFLAGS=
578
579# Identity of this package.
580PACKAGE_NAME='open_pdks'
581PACKAGE_TARNAME='open_pdks'
582PACKAGE_VERSION='1.0'
583PACKAGE_STRING='open_pdks 1.0'
584PACKAGE_BUGREPORT='github.com/RTimothyEdwards/open_pdks'
585PACKAGE_URL=''
586
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400589EF_STYLE
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200590MAGIC
591pkgpyexecdir
592pyexecdir
593pkgpythondir
594pythondir
595PYTHON_PLATFORM
596PYTHON_EXEC_PREFIX
597PYTHON_PREFIX
598PYTHON_VERSION
599PYTHON
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400600SKY130_LINK_TARGETS
601SKY130_DIST_PATH
602SKY130_LOCAL_PATH
603SKY130_SOURCE_PATH
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200604target_alias
605host_alias
606build_alias
607LIBS
608ECHO_T
609ECHO_N
610ECHO_C
611DEFS
612mandir
613localedir
614libdir
615psdir
616pdfdir
617dvidir
618htmldir
619infodir
620docdir
621oldincludedir
622includedir
623localstatedir
624sharedstatedir
625sysconfdir
626datadir
627datarootdir
628libexecdir
629sbindir
630bindir
631program_transform_name
632prefix
633exec_prefix
634PACKAGE_URL
635PACKAGE_BUGREPORT
636PACKAGE_STRING
637PACKAGE_VERSION
638PACKAGE_TARNAME
639PACKAGE_NAME
640PATH_SEPARATOR
641SHELL'
642ac_subst_files=''
643ac_user_opts='
644enable_option_checking
645with_sky130_source
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400646with_sky130_local_path
647with_sky130_dist_path
648with_sky130_link_targets
649with_ef_style
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200650'
651 ac_precious_vars='build_alias
652host_alias
653target_alias
654PYTHON'
655
656
657# Initialize some variables set by options.
658ac_init_help=
659ac_init_version=false
660ac_unrecognized_opts=
661ac_unrecognized_sep=
662# The variables have the same names as the options, with
663# dashes changed to underlines.
664cache_file=/dev/null
665exec_prefix=NONE
666no_create=
667no_recursion=
668prefix=NONE
669program_prefix=NONE
670program_suffix=NONE
671program_transform_name=s,x,x,
672silent=
673site=
674srcdir=
675verbose=
676x_includes=NONE
677x_libraries=NONE
678
679# Installation directory options.
680# These are left unexpanded so users can "make install exec_prefix=/foo"
681# and all the variables that are supposed to be based on exec_prefix
682# by default will actually change.
683# Use braces instead of parens because sh, perl, etc. also accept them.
684# (The list follows the same order as the GNU Coding Standards.)
685bindir='${exec_prefix}/bin'
686sbindir='${exec_prefix}/sbin'
687libexecdir='${exec_prefix}/libexec'
688datarootdir='${prefix}/share'
689datadir='${datarootdir}'
690sysconfdir='${prefix}/etc'
691sharedstatedir='${prefix}/com'
692localstatedir='${prefix}/var'
693includedir='${prefix}/include'
694oldincludedir='/usr/include'
695docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
696infodir='${datarootdir}/info'
697htmldir='${docdir}'
698dvidir='${docdir}'
699pdfdir='${docdir}'
700psdir='${docdir}'
701libdir='${exec_prefix}/lib'
702localedir='${datarootdir}/locale'
703mandir='${datarootdir}/man'
704
705ac_prev=
706ac_dashdash=
707for ac_option
708do
709 # If the previous option needs an argument, assign it.
710 if test -n "$ac_prev"; then
711 eval $ac_prev=\$ac_option
712 ac_prev=
713 continue
714 fi
715
716 case $ac_option in
717 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
718 *=) ac_optarg= ;;
719 *) ac_optarg=yes ;;
720 esac
721
722 # Accept the important Cygnus configure options, so we can diagnose typos.
723
724 case $ac_dashdash$ac_option in
725 --)
726 ac_dashdash=yes ;;
727
728 -bindir | --bindir | --bindi | --bind | --bin | --bi)
729 ac_prev=bindir ;;
730 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
731 bindir=$ac_optarg ;;
732
733 -build | --build | --buil | --bui | --bu)
734 ac_prev=build_alias ;;
735 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
736 build_alias=$ac_optarg ;;
737
738 -cache-file | --cache-file | --cache-fil | --cache-fi \
739 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
740 ac_prev=cache_file ;;
741 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
742 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
743 cache_file=$ac_optarg ;;
744
745 --config-cache | -C)
746 cache_file=config.cache ;;
747
748 -datadir | --datadir | --datadi | --datad)
749 ac_prev=datadir ;;
750 -datadir=* | --datadir=* | --datadi=* | --datad=*)
751 datadir=$ac_optarg ;;
752
753 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
754 | --dataroo | --dataro | --datar)
755 ac_prev=datarootdir ;;
756 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
757 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
758 datarootdir=$ac_optarg ;;
759
760 -disable-* | --disable-*)
761 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
762 # Reject names that are not valid shell variable names.
763 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
764 as_fn_error $? "invalid feature name: $ac_useropt"
765 ac_useropt_orig=$ac_useropt
766 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
767 case $ac_user_opts in
768 *"
769"enable_$ac_useropt"
770"*) ;;
771 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
772 ac_unrecognized_sep=', ';;
773 esac
774 eval enable_$ac_useropt=no ;;
775
776 -docdir | --docdir | --docdi | --doc | --do)
777 ac_prev=docdir ;;
778 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
779 docdir=$ac_optarg ;;
780
781 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
782 ac_prev=dvidir ;;
783 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
784 dvidir=$ac_optarg ;;
785
786 -enable-* | --enable-*)
787 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
790 as_fn_error $? "invalid feature name: $ac_useropt"
791 ac_useropt_orig=$ac_useropt
792 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
793 case $ac_user_opts in
794 *"
795"enable_$ac_useropt"
796"*) ;;
797 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
798 ac_unrecognized_sep=', ';;
799 esac
800 eval enable_$ac_useropt=\$ac_optarg ;;
801
802 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
803 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
804 | --exec | --exe | --ex)
805 ac_prev=exec_prefix ;;
806 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
807 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
808 | --exec=* | --exe=* | --ex=*)
809 exec_prefix=$ac_optarg ;;
810
811 -gas | --gas | --ga | --g)
812 # Obsolete; use --with-gas.
813 with_gas=yes ;;
814
815 -help | --help | --hel | --he | -h)
816 ac_init_help=long ;;
817 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
818 ac_init_help=recursive ;;
819 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
820 ac_init_help=short ;;
821
822 -host | --host | --hos | --ho)
823 ac_prev=host_alias ;;
824 -host=* | --host=* | --hos=* | --ho=*)
825 host_alias=$ac_optarg ;;
826
827 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
828 ac_prev=htmldir ;;
829 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
830 | --ht=*)
831 htmldir=$ac_optarg ;;
832
833 -includedir | --includedir | --includedi | --included | --include \
834 | --includ | --inclu | --incl | --inc)
835 ac_prev=includedir ;;
836 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
837 | --includ=* | --inclu=* | --incl=* | --inc=*)
838 includedir=$ac_optarg ;;
839
840 -infodir | --infodir | --infodi | --infod | --info | --inf)
841 ac_prev=infodir ;;
842 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
843 infodir=$ac_optarg ;;
844
845 -libdir | --libdir | --libdi | --libd)
846 ac_prev=libdir ;;
847 -libdir=* | --libdir=* | --libdi=* | --libd=*)
848 libdir=$ac_optarg ;;
849
850 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
851 | --libexe | --libex | --libe)
852 ac_prev=libexecdir ;;
853 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
854 | --libexe=* | --libex=* | --libe=*)
855 libexecdir=$ac_optarg ;;
856
857 -localedir | --localedir | --localedi | --localed | --locale)
858 ac_prev=localedir ;;
859 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
860 localedir=$ac_optarg ;;
861
862 -localstatedir | --localstatedir | --localstatedi | --localstated \
863 | --localstate | --localstat | --localsta | --localst | --locals)
864 ac_prev=localstatedir ;;
865 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
866 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
867 localstatedir=$ac_optarg ;;
868
869 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
870 ac_prev=mandir ;;
871 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
872 mandir=$ac_optarg ;;
873
874 -nfp | --nfp | --nf)
875 # Obsolete; use --without-fp.
876 with_fp=no ;;
877
878 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
879 | --no-cr | --no-c | -n)
880 no_create=yes ;;
881
882 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
883 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
884 no_recursion=yes ;;
885
886 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
887 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
888 | --oldin | --oldi | --old | --ol | --o)
889 ac_prev=oldincludedir ;;
890 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
891 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
892 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
893 oldincludedir=$ac_optarg ;;
894
895 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
896 ac_prev=prefix ;;
897 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
898 prefix=$ac_optarg ;;
899
900 -program-prefix | --program-prefix | --program-prefi | --program-pref \
901 | --program-pre | --program-pr | --program-p)
902 ac_prev=program_prefix ;;
903 -program-prefix=* | --program-prefix=* | --program-prefi=* \
904 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
905 program_prefix=$ac_optarg ;;
906
907 -program-suffix | --program-suffix | --program-suffi | --program-suff \
908 | --program-suf | --program-su | --program-s)
909 ac_prev=program_suffix ;;
910 -program-suffix=* | --program-suffix=* | --program-suffi=* \
911 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
912 program_suffix=$ac_optarg ;;
913
914 -program-transform-name | --program-transform-name \
915 | --program-transform-nam | --program-transform-na \
916 | --program-transform-n | --program-transform- \
917 | --program-transform | --program-transfor \
918 | --program-transfo | --program-transf \
919 | --program-trans | --program-tran \
920 | --progr-tra | --program-tr | --program-t)
921 ac_prev=program_transform_name ;;
922 -program-transform-name=* | --program-transform-name=* \
923 | --program-transform-nam=* | --program-transform-na=* \
924 | --program-transform-n=* | --program-transform-=* \
925 | --program-transform=* | --program-transfor=* \
926 | --program-transfo=* | --program-transf=* \
927 | --program-trans=* | --program-tran=* \
928 | --progr-tra=* | --program-tr=* | --program-t=*)
929 program_transform_name=$ac_optarg ;;
930
931 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
932 ac_prev=pdfdir ;;
933 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
934 pdfdir=$ac_optarg ;;
935
936 -psdir | --psdir | --psdi | --psd | --ps)
937 ac_prev=psdir ;;
938 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
939 psdir=$ac_optarg ;;
940
941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
942 | -silent | --silent | --silen | --sile | --sil)
943 silent=yes ;;
944
945 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
946 ac_prev=sbindir ;;
947 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
948 | --sbi=* | --sb=*)
949 sbindir=$ac_optarg ;;
950
951 -sharedstatedir | --sharedstatedir | --sharedstatedi \
952 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
953 | --sharedst | --shareds | --shared | --share | --shar \
954 | --sha | --sh)
955 ac_prev=sharedstatedir ;;
956 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
957 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
958 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
959 | --sha=* | --sh=*)
960 sharedstatedir=$ac_optarg ;;
961
962 -site | --site | --sit)
963 ac_prev=site ;;
964 -site=* | --site=* | --sit=*)
965 site=$ac_optarg ;;
966
967 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
968 ac_prev=srcdir ;;
969 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
970 srcdir=$ac_optarg ;;
971
972 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
973 | --syscon | --sysco | --sysc | --sys | --sy)
974 ac_prev=sysconfdir ;;
975 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
976 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
977 sysconfdir=$ac_optarg ;;
978
979 -target | --target | --targe | --targ | --tar | --ta | --t)
980 ac_prev=target_alias ;;
981 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
982 target_alias=$ac_optarg ;;
983
984 -v | -verbose | --verbose | --verbos | --verbo | --verb)
985 verbose=yes ;;
986
987 -version | --version | --versio | --versi | --vers | -V)
988 ac_init_version=: ;;
989
990 -with-* | --with-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 as_fn_error $? "invalid package name: $ac_useropt"
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999"with_$ac_useropt"
1000"*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval with_$ac_useropt=\$ac_optarg ;;
1005
1006 -without-* | --without-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid package name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015"with_$ac_useropt"
1016"*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval with_$ac_useropt=no ;;
1021
1022 --x)
1023 # Obsolete; use --with-x.
1024 with_x=yes ;;
1025
1026 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1027 | --x-incl | --x-inc | --x-in | --x-i)
1028 ac_prev=x_includes ;;
1029 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1030 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1031 x_includes=$ac_optarg ;;
1032
1033 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1034 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1035 ac_prev=x_libraries ;;
1036 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1037 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1038 x_libraries=$ac_optarg ;;
1039
1040 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1041Try \`$0 --help' for more information"
1042 ;;
1043
1044 *=*)
1045 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1046 # Reject names that are not valid shell variable names.
1047 case $ac_envvar in #(
1048 '' | [0-9]* | *[!_$as_cr_alnum]* )
1049 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1050 esac
1051 eval $ac_envvar=\$ac_optarg
1052 export $ac_envvar ;;
1053
1054 *)
1055 # FIXME: should be removed in autoconf 3.0.
1056 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1057 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1059 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1060 ;;
1061
1062 esac
1063done
1064
1065if test -n "$ac_prev"; then
1066 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1067 as_fn_error $? "missing argument to $ac_option"
1068fi
1069
1070if test -n "$ac_unrecognized_opts"; then
1071 case $enable_option_checking in
1072 no) ;;
1073 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1074 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1075 esac
1076fi
1077
1078# Check all directory arguments for consistency.
1079for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1080 datadir sysconfdir sharedstatedir localstatedir includedir \
1081 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1082 libdir localedir mandir
1083do
1084 eval ac_val=\$$ac_var
1085 # Remove trailing slashes.
1086 case $ac_val in
1087 */ )
1088 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1089 eval $ac_var=\$ac_val;;
1090 esac
1091 # Be sure to have absolute directory names.
1092 case $ac_val in
1093 [\\/$]* | ?:[\\/]* ) continue;;
1094 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1095 esac
1096 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1097done
1098
1099# There might be people who depend on the old broken behavior: `$host'
1100# used to hold the argument of --host etc.
1101# FIXME: To remove some day.
1102build=$build_alias
1103host=$host_alias
1104target=$target_alias
1105
1106# FIXME: To remove some day.
1107if test "x$host_alias" != x; then
1108 if test "x$build_alias" = x; then
1109 cross_compiling=maybe
1110 elif test "x$build_alias" != "x$host_alias"; then
1111 cross_compiling=yes
1112 fi
1113fi
1114
1115ac_tool_prefix=
1116test -n "$host_alias" && ac_tool_prefix=$host_alias-
1117
1118test "$silent" = yes && exec 6>/dev/null
1119
1120
1121ac_pwd=`pwd` && test -n "$ac_pwd" &&
1122ac_ls_di=`ls -di .` &&
1123ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1124 as_fn_error $? "working directory cannot be determined"
1125test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1126 as_fn_error $? "pwd does not report name of working directory"
1127
1128
1129# Find the source files, if location was not specified.
1130if test -z "$srcdir"; then
1131 ac_srcdir_defaulted=yes
1132 # Try the directory containing this script, then the parent directory.
1133 ac_confdir=`$as_dirname -- "$as_myself" ||
1134$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1135 X"$as_myself" : 'X\(//\)[^/]' \| \
1136 X"$as_myself" : 'X\(//\)$' \| \
1137 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1138$as_echo X"$as_myself" |
1139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1140 s//\1/
1141 q
1142 }
1143 /^X\(\/\/\)[^/].*/{
1144 s//\1/
1145 q
1146 }
1147 /^X\(\/\/\)$/{
1148 s//\1/
1149 q
1150 }
1151 /^X\(\/\).*/{
1152 s//\1/
1153 q
1154 }
1155 s/.*/./; q'`
1156 srcdir=$ac_confdir
1157 if test ! -r "$srcdir/$ac_unique_file"; then
1158 srcdir=..
1159 fi
1160else
1161 ac_srcdir_defaulted=no
1162fi
1163if test ! -r "$srcdir/$ac_unique_file"; then
1164 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1165 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1166fi
1167ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1168ac_abs_confdir=`(
1169 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1170 pwd)`
1171# When building in place, set srcdir=.
1172if test "$ac_abs_confdir" = "$ac_pwd"; then
1173 srcdir=.
1174fi
1175# Remove unnecessary trailing slashes from srcdir.
1176# Double slashes in file names in object file debugging info
1177# mess up M-x gdb in Emacs.
1178case $srcdir in
1179*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1180esac
1181for ac_var in $ac_precious_vars; do
1182 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1183 eval ac_env_${ac_var}_value=\$${ac_var}
1184 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1185 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1186done
1187
1188#
1189# Report the --help message.
1190#
1191if test "$ac_init_help" = "long"; then
1192 # Omit some internal or obsolete options to make the list less imposing.
1193 # This message is too long to be a string in the A/UX 3.1 sh.
1194 cat <<_ACEOF
1195\`configure' configures open_pdks 1.0 to adapt to many kinds of systems.
1196
1197Usage: $0 [OPTION]... [VAR=VALUE]...
1198
1199To assign environment variables (e.g., CC, CFLAGS...), specify them as
1200VAR=VALUE. See below for descriptions of some of the useful variables.
1201
1202Defaults for the options are specified in brackets.
1203
1204Configuration:
1205 -h, --help display this help and exit
1206 --help=short display options specific to this package
1207 --help=recursive display the short help of all the included packages
1208 -V, --version display version information and exit
1209 -q, --quiet, --silent do not print \`checking ...' messages
1210 --cache-file=FILE cache test results in FILE [disabled]
1211 -C, --config-cache alias for \`--cache-file=config.cache'
1212 -n, --no-create do not create output files
1213 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1214
1215Installation directories:
1216 --prefix=PREFIX install architecture-independent files in PREFIX
1217 [$ac_default_prefix]
1218 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1219 [PREFIX]
1220
1221By default, \`make install' will install all the files in
1222\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1223an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1224for instance \`--prefix=\$HOME'.
1225
1226For better control, use the options below.
1227
1228Fine tuning of the installation directories:
1229 --bindir=DIR user executables [EPREFIX/bin]
1230 --sbindir=DIR system admin executables [EPREFIX/sbin]
1231 --libexecdir=DIR program executables [EPREFIX/libexec]
1232 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1233 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1234 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1235 --libdir=DIR object code libraries [EPREFIX/lib]
1236 --includedir=DIR C header files [PREFIX/include]
1237 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1238 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1239 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1240 --infodir=DIR info documentation [DATAROOTDIR/info]
1241 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1242 --mandir=DIR man documentation [DATAROOTDIR/man]
1243 --docdir=DIR documentation root [DATAROOTDIR/doc/open_pdks]
1244 --htmldir=DIR html documentation [DOCDIR]
1245 --dvidir=DIR dvi documentation [DOCDIR]
1246 --pdfdir=DIR pdf documentation [DOCDIR]
1247 --psdir=DIR ps documentation [DOCDIR]
1248_ACEOF
1249
1250 cat <<\_ACEOF
1251_ACEOF
1252fi
1253
1254if test -n "$ac_init_help"; then
1255 case $ac_init_help in
1256 short | recursive ) echo "Configuration of open_pdks 1.0:";;
1257 esac
1258 cat <<\_ACEOF
1259
1260Optional Packages:
1261 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1262 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1263 --with-sky130-source=/path/to/sky130/source
1264 "location of the source files for sky130"
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001265 --with-sky130-local-path=/path/to/install/pdks
1266 "run-time location of the PDKs"
1267 --with-sky130-dist-path=/path/to/install/pdks
1268 "staging location to install the PDKs for
1269 distribution (optional)"
1270 --with-sky130-link-targets=none|source
1271 "make symbolic links to existing files
1272 [default=none]"
1273 --with-ef-style Use efabless style file system structure
1274 [default=no]
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001275
1276Some influential environment variables:
1277 PYTHON the Python interpreter
1278
1279Use these variables to override the choices made by `configure' or to help
1280it to find libraries and programs with nonstandard names/locations.
1281
1282Report bugs to <github.com/RTimothyEdwards/open_pdks>.
1283_ACEOF
1284ac_status=$?
1285fi
1286
1287if test "$ac_init_help" = "recursive"; then
1288 # If there are subdirs, report their specific --help.
1289 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1290 test -d "$ac_dir" ||
1291 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1292 continue
1293 ac_builddir=.
1294
1295case "$ac_dir" in
1296.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1297*)
1298 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1299 # A ".." for each directory in $ac_dir_suffix.
1300 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1301 case $ac_top_builddir_sub in
1302 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1303 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1304 esac ;;
1305esac
1306ac_abs_top_builddir=$ac_pwd
1307ac_abs_builddir=$ac_pwd$ac_dir_suffix
1308# for backward compatibility:
1309ac_top_builddir=$ac_top_build_prefix
1310
1311case $srcdir in
1312 .) # We are building in place.
1313 ac_srcdir=.
1314 ac_top_srcdir=$ac_top_builddir_sub
1315 ac_abs_top_srcdir=$ac_pwd ;;
1316 [\\/]* | ?:[\\/]* ) # Absolute name.
1317 ac_srcdir=$srcdir$ac_dir_suffix;
1318 ac_top_srcdir=$srcdir
1319 ac_abs_top_srcdir=$srcdir ;;
1320 *) # Relative name.
1321 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1322 ac_top_srcdir=$ac_top_build_prefix$srcdir
1323 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1324esac
1325ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1326
1327 cd "$ac_dir" || { ac_status=$?; continue; }
1328 # Check for guested configure.
1329 if test -f "$ac_srcdir/configure.gnu"; then
1330 echo &&
1331 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1332 elif test -f "$ac_srcdir/configure"; then
1333 echo &&
1334 $SHELL "$ac_srcdir/configure" --help=recursive
1335 else
1336 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1337 fi || ac_status=$?
1338 cd "$ac_pwd" || { ac_status=$?; break; }
1339 done
1340fi
1341
1342test -n "$ac_init_help" && exit $ac_status
1343if $ac_init_version; then
1344 cat <<\_ACEOF
1345open_pdks configure 1.0
1346generated by GNU Autoconf 2.69
1347
1348Copyright (C) 2012 Free Software Foundation, Inc.
1349This configure script is free software; the Free Software Foundation
1350gives unlimited permission to copy, distribute and modify it.
1351_ACEOF
1352 exit
1353fi
1354
1355## ------------------------ ##
1356## Autoconf initialization. ##
1357## ------------------------ ##
1358cat >config.log <<_ACEOF
1359This file contains any messages produced by compilers while
1360running configure, to aid debugging if configure makes a mistake.
1361
1362It was created by open_pdks $as_me 1.0, which was
1363generated by GNU Autoconf 2.69. Invocation command line was
1364
1365 $ $0 $@
1366
1367_ACEOF
1368exec 5>>config.log
1369{
1370cat <<_ASUNAME
1371## --------- ##
1372## Platform. ##
1373## --------- ##
1374
1375hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1376uname -m = `(uname -m) 2>/dev/null || echo unknown`
1377uname -r = `(uname -r) 2>/dev/null || echo unknown`
1378uname -s = `(uname -s) 2>/dev/null || echo unknown`
1379uname -v = `(uname -v) 2>/dev/null || echo unknown`
1380
1381/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1382/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1383
1384/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1385/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1386/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1387/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1388/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1389/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1390/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1391
1392_ASUNAME
1393
1394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1395for as_dir in $PATH
1396do
1397 IFS=$as_save_IFS
1398 test -z "$as_dir" && as_dir=.
1399 $as_echo "PATH: $as_dir"
1400 done
1401IFS=$as_save_IFS
1402
1403} >&5
1404
1405cat >&5 <<_ACEOF
1406
1407
1408## ----------- ##
1409## Core tests. ##
1410## ----------- ##
1411
1412_ACEOF
1413
1414
1415# Keep a trace of the command line.
1416# Strip out --no-create and --no-recursion so they do not pile up.
1417# Strip out --silent because we don't want to record it for future runs.
1418# Also quote any args containing shell meta-characters.
1419# Make two passes to allow for proper duplicate-argument suppression.
1420ac_configure_args=
1421ac_configure_args0=
1422ac_configure_args1=
1423ac_must_keep_next=false
1424for ac_pass in 1 2
1425do
1426 for ac_arg
1427 do
1428 case $ac_arg in
1429 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1431 | -silent | --silent | --silen | --sile | --sil)
1432 continue ;;
1433 *\'*)
1434 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1435 esac
1436 case $ac_pass in
1437 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1438 2)
1439 as_fn_append ac_configure_args1 " '$ac_arg'"
1440 if test $ac_must_keep_next = true; then
1441 ac_must_keep_next=false # Got value, back to normal.
1442 else
1443 case $ac_arg in
1444 *=* | --config-cache | -C | -disable-* | --disable-* \
1445 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1446 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1447 | -with-* | --with-* | -without-* | --without-* | --x)
1448 case "$ac_configure_args0 " in
1449 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1450 esac
1451 ;;
1452 -* ) ac_must_keep_next=true ;;
1453 esac
1454 fi
1455 as_fn_append ac_configure_args " '$ac_arg'"
1456 ;;
1457 esac
1458 done
1459done
1460{ ac_configure_args0=; unset ac_configure_args0;}
1461{ ac_configure_args1=; unset ac_configure_args1;}
1462
1463# When interrupted or exit'd, cleanup temporary files, and complete
1464# config.log. We remove comments because anyway the quotes in there
1465# would cause problems or look ugly.
1466# WARNING: Use '\'' to represent an apostrophe within the trap.
1467# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1468trap 'exit_status=$?
1469 # Save into config.log some information that might help in debugging.
1470 {
1471 echo
1472
1473 $as_echo "## ---------------- ##
1474## Cache variables. ##
1475## ---------------- ##"
1476 echo
1477 # The following way of writing the cache mishandles newlines in values,
1478(
1479 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1480 eval ac_val=\$$ac_var
1481 case $ac_val in #(
1482 *${as_nl}*)
1483 case $ac_var in #(
1484 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1485$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1486 esac
1487 case $ac_var in #(
1488 _ | IFS | as_nl) ;; #(
1489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1490 *) { eval $ac_var=; unset $ac_var;} ;;
1491 esac ;;
1492 esac
1493 done
1494 (set) 2>&1 |
1495 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1496 *${as_nl}ac_space=\ *)
1497 sed -n \
1498 "s/'\''/'\''\\\\'\'''\''/g;
1499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1500 ;; #(
1501 *)
1502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1503 ;;
1504 esac |
1505 sort
1506)
1507 echo
1508
1509 $as_echo "## ----------------- ##
1510## Output variables. ##
1511## ----------------- ##"
1512 echo
1513 for ac_var in $ac_subst_vars
1514 do
1515 eval ac_val=\$$ac_var
1516 case $ac_val in
1517 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1518 esac
1519 $as_echo "$ac_var='\''$ac_val'\''"
1520 done | sort
1521 echo
1522
1523 if test -n "$ac_subst_files"; then
1524 $as_echo "## ------------------- ##
1525## File substitutions. ##
1526## ------------------- ##"
1527 echo
1528 for ac_var in $ac_subst_files
1529 do
1530 eval ac_val=\$$ac_var
1531 case $ac_val in
1532 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533 esac
1534 $as_echo "$ac_var='\''$ac_val'\''"
1535 done | sort
1536 echo
1537 fi
1538
1539 if test -s confdefs.h; then
1540 $as_echo "## ----------- ##
1541## confdefs.h. ##
1542## ----------- ##"
1543 echo
1544 cat confdefs.h
1545 echo
1546 fi
1547 test "$ac_signal" != 0 &&
1548 $as_echo "$as_me: caught signal $ac_signal"
1549 $as_echo "$as_me: exit $exit_status"
1550 } >&5
1551 rm -f core *.core core.conftest.* &&
1552 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1553 exit $exit_status
1554' 0
1555for ac_signal in 1 2 13 15; do
1556 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1557done
1558ac_signal=0
1559
1560# confdefs.h avoids OS command line length limits that DEFS can exceed.
1561rm -f -r conftest* confdefs.h
1562
1563$as_echo "/* confdefs.h */" > confdefs.h
1564
1565# Predefined preprocessor variables.
1566
1567cat >>confdefs.h <<_ACEOF
1568#define PACKAGE_NAME "$PACKAGE_NAME"
1569_ACEOF
1570
1571cat >>confdefs.h <<_ACEOF
1572#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1573_ACEOF
1574
1575cat >>confdefs.h <<_ACEOF
1576#define PACKAGE_VERSION "$PACKAGE_VERSION"
1577_ACEOF
1578
1579cat >>confdefs.h <<_ACEOF
1580#define PACKAGE_STRING "$PACKAGE_STRING"
1581_ACEOF
1582
1583cat >>confdefs.h <<_ACEOF
1584#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1585_ACEOF
1586
1587cat >>confdefs.h <<_ACEOF
1588#define PACKAGE_URL "$PACKAGE_URL"
1589_ACEOF
1590
1591
1592# Let the site file select an alternate cache file if it wants to.
1593# Prefer an explicitly selected file to automatically selected ones.
1594ac_site_file1=NONE
1595ac_site_file2=NONE
1596if test -n "$CONFIG_SITE"; then
1597 # We do not want a PATH search for config.site.
1598 case $CONFIG_SITE in #((
1599 -*) ac_site_file1=./$CONFIG_SITE;;
1600 */*) ac_site_file1=$CONFIG_SITE;;
1601 *) ac_site_file1=./$CONFIG_SITE;;
1602 esac
1603elif test "x$prefix" != xNONE; then
1604 ac_site_file1=$prefix/share/config.site
1605 ac_site_file2=$prefix/etc/config.site
1606else
1607 ac_site_file1=$ac_default_prefix/share/config.site
1608 ac_site_file2=$ac_default_prefix/etc/config.site
1609fi
1610for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1611do
1612 test "x$ac_site_file" = xNONE && continue
1613 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1615$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1616 sed 's/^/| /' "$ac_site_file" >&5
1617 . "$ac_site_file" \
1618 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1620as_fn_error $? "failed to load site script $ac_site_file
1621See \`config.log' for more details" "$LINENO" 5; }
1622 fi
1623done
1624
1625if test -r "$cache_file"; then
1626 # Some versions of bash will fail to source /dev/null (special files
1627 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1628 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1630$as_echo "$as_me: loading cache $cache_file" >&6;}
1631 case $cache_file in
1632 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1633 *) . "./$cache_file";;
1634 esac
1635 fi
1636else
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1638$as_echo "$as_me: creating cache $cache_file" >&6;}
1639 >$cache_file
1640fi
1641
1642# Check that the precious variables saved in the cache have kept the same
1643# value.
1644ac_cache_corrupted=false
1645for ac_var in $ac_precious_vars; do
1646 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1647 eval ac_new_set=\$ac_env_${ac_var}_set
1648 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1649 eval ac_new_val=\$ac_env_${ac_var}_value
1650 case $ac_old_set,$ac_new_set in
1651 set,)
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1653$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1654 ac_cache_corrupted=: ;;
1655 ,set)
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1657$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1658 ac_cache_corrupted=: ;;
1659 ,);;
1660 *)
1661 if test "x$ac_old_val" != "x$ac_new_val"; then
1662 # differences in whitespace do not lead to failure.
1663 ac_old_val_w=`echo x $ac_old_val`
1664 ac_new_val_w=`echo x $ac_new_val`
1665 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1667$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1668 ac_cache_corrupted=:
1669 else
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1671$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1672 eval $ac_var=\$ac_old_val
1673 fi
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1675$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1677$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1678 fi;;
1679 esac
1680 # Pass precious variables to config.status.
1681 if test "$ac_new_set" = set; then
1682 case $ac_new_val in
1683 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1684 *) ac_arg=$ac_var=$ac_new_val ;;
1685 esac
1686 case " $ac_configure_args " in
1687 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1688 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1689 esac
1690 fi
1691done
1692if $ac_cache_corrupted; then
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1696$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1697 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1698fi
1699## -------------------- ##
1700## Main body of script. ##
1701## -------------------- ##
1702
1703ac_ext=c
1704ac_cpp='$CPP $CPPFLAGS'
1705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1707ac_compiler_gnu=$ac_cv_c_compiler_gnu
1708
1709
1710
1711# detect PDKs based on directories that include Makefile.in files
1712
1713
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001714# check for the source and install paths for each PDK.
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001715
1716
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001717{ $as_echo "$as_me:${as_lineno-$LINENO}: Found technology directories: sky130" >&5
1718$as_echo "$as_me: Found technology directories: sky130" >&6;}
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001719
1720
1721 # --with-pdk-source=PDK_SOURCE_PATH
1722
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001723
Tim Edwards5ef03972020-08-08 12:23:27 -04001724 SKY130_SOURCE_PATH_=""
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001725
1726# Check whether --with-sky130-source was given.
1727if test "${with_sky130_source+set}" = set; then :
Tim Edwards5ef03972020-08-08 12:23:27 -04001728 withval=$with_sky130_source; SKY130_SOURCE_PATH_=$withval
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001729
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001730fi
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001731
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001732
1733 # Require this argument
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether source path is specified for 'sky130'" >&5
1735$as_echo "$as_me: Checking whether source path is specified for 'sky130'" >&6;}
Tim Edwards5ef03972020-08-08 12:23:27 -04001736 if test "x$SKY130_SOURCE_PATH_" == "x" ; then
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001737 as_fn_error $? "Option --with-sky130-source=<path> not specified!" "$LINENO" 5
1738 fi
1739
Tim Edwards5ef03972020-08-08 12:23:27 -04001740 SKY130_SOURCE_PATH=`readlink -f $SKY130_SOURCE_PATH_`
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001741
1742 # basic check that the PDK exists there (the path must exist in any case)
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&5
1744$as_echo "$as_me: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&6;}
1745 as_ac_File=`$as_echo "ac_cv_file_$SKY130_SOURCE_PATH" | $as_tr_sh`
1746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SKY130_SOURCE_PATH" >&5
1747$as_echo_n "checking for $SKY130_SOURCE_PATH... " >&6; }
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001748if eval \${$as_ac_File+:} false; then :
1749 $as_echo_n "(cached) " >&6
1750else
1751 test "$cross_compiling" = yes &&
1752 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001753if test -r "$SKY130_SOURCE_PATH"; then
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001754 eval "$as_ac_File=yes"
1755else
1756 eval "$as_ac_File=no"
1757fi
1758fi
1759eval ac_res=\$$as_ac_File
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761$as_echo "$ac_res" >&6; }
1762if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
1763
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001764 { $as_echo "$as_me:${as_lineno-$LINENO}: 'sky130' source path found at $SKY130_SOURCE_PATH" >&5
1765$as_echo "$as_me: 'sky130' source path found at $SKY130_SOURCE_PATH" >&6;}
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001766
1767else
1768
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001769 as_fn_error $? "Specified path for 'sky130' at $SKY130_SOURCE_PATH not found" "$LINENO" 5
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001770
1771fi
1772
1773
1774
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001775
1776
1777 # --with-pdk-local-path=PDK_LOCAL_PATH
1778
1779
1780 SKY130_LOCAL_PATH=""
1781
1782# Check whether --with-sky130-local-path was given.
1783if test "${with_sky130_local_path+set}" = set; then :
1784 withval=$with_sky130_local_path; SKY130_LOCAL_PATH=$withval
1785
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001786fi
1787
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001788 # Require this argument
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether local path is specified for 'sky130'" >&5
1790$as_echo "$as_me: Checking whether local path is specified for 'sky130'" >&6;}
1791 if test "x$SKY130_LOCAL_PATH" == "x" ; then
1792 as_fn_error $? "Option --with-sky130-local-path=<path> not specified!" "$LINENO" 5
1793 fi
1794 SKY130_LOCAL_PATH=$(readlink -f $SKY130_LOCAL_PATH)
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001795
1796
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001797
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001798 # --with-pdk-dist-path=PDK_DIST_PATH
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001799
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001800
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001801 SKY130_DIST_PATH=""
1802
1803# Check whether --with-sky130-dist-path was given.
1804if test "${with_sky130_dist_path+set}" = set; then :
1805 withval=$with_sky130_dist_path; SKY130_DIST_PATH=$withval
1806
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001807fi
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001808
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001809 # Require this argument
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether distribution path is specified for 'sky130'" >&5
1811$as_echo "$as_me: Checking whether distribution path is specified for 'sky130'" >&6;}
1812 if test "x$SKY130_DIST_PATH" == "x" ; then
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: Option --with-sky130-dist-path=<path> not specified. Local install only.\"" >&5
1814$as_echo "$as_me: Option --with-sky130-dist-path=<path> not specified. Local install only.\"" >&6;}
1815 fi
1816 SKY130_DIST_PATH=$(readlink -f $SKY130_DIST_PATH)
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001817
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001818
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001819
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001820 # --with-pdk-link-targets=PDK_LINK_TARGETS
1821
1822
1823 # Default link_targets = "none"
1824 SKY130_LINK_TARGETS="none"
1825
1826
1827# Check whether --with-sky130-link-targets was given.
1828if test "${with_sky130_link_targets+set}" = set; then :
1829 withval=$with_sky130_link_targets; SKY130_LINK_TARGETS=$with_sky130_link_targets
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001830
1831fi
1832
1833
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001834 { $as_echo "$as_me:${as_lineno-$LINENO}: Link targets set to $SKY130_LINK_TARGETS" >&5
1835$as_echo "$as_me: Link targets set to $SKY130_LINK_TARGETS" >&6;}
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001836
1837
1838
1839# Checking if (some) prerequisites are satisfied
1840
1841
1842
1843
1844
1845
1846 if test -n "$PYTHON"; then
1847 # If the user set $PYTHON, use it and don't search something else.
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
1849$as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
1850 prog="import sys
1851# split strings by '.' and convert to numeric. Append some zeros
1852# because we need at least 4 digits for the hex conversion.
1853# map returns an iterator in Python 3.0 and a list in 2.x
1854minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
1855minverhex = 0
1856# xrange is not present in Python 3.0 and range returns an iterator
1857for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
1858sys.exit(sys.hexversion < minverhex)"
1859 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
1860 ($PYTHON -c "$prog") >&5 2>&5
1861 ac_status=$?
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }; then :
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1865$as_echo "yes" >&6; }
1866else
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1868$as_echo "no" >&6; }
1869 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
1870fi
1871 am_display_PYTHON=$PYTHON
1872 else
1873 # Otherwise, try each interpreter until we find one that satisfies
1874 # VERSION.
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
1876$as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
1877if ${am_cv_pathless_PYTHON+:} false; then :
1878 $as_echo_n "(cached) " >&6
1879else
1880
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001881 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001882 test "$am_cv_pathless_PYTHON" = none && break
1883 prog="import sys
1884# split strings by '.' and convert to numeric. Append some zeros
1885# because we need at least 4 digits for the hex conversion.
1886# map returns an iterator in Python 3.0 and a list in 2.x
1887minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
1888minverhex = 0
1889# xrange is not present in Python 3.0 and range returns an iterator
1890for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
1891sys.exit(sys.hexversion < minverhex)"
1892 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
1893 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
1894 ac_status=$?
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; then :
1897 break
1898fi
1899 done
1900fi
1901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
1902$as_echo "$am_cv_pathless_PYTHON" >&6; }
1903 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
1904 if test "$am_cv_pathless_PYTHON" = none; then
1905 PYTHON=:
1906 else
1907 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
1908set dummy $am_cv_pathless_PYTHON; ac_word=$2
1909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1910$as_echo_n "checking for $ac_word... " >&6; }
1911if ${ac_cv_path_PYTHON+:} false; then :
1912 $as_echo_n "(cached) " >&6
1913else
1914 case $PYTHON in
1915 [\\/]* | ?:[\\/]*)
1916 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1917 ;;
1918 *)
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920for as_dir in $PATH
1921do
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
1927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 break 2
1929 fi
1930done
1931 done
1932IFS=$as_save_IFS
1933
1934 ;;
1935esac
1936fi
1937PYTHON=$ac_cv_path_PYTHON
1938if test -n "$PYTHON"; then
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
1940$as_echo "$PYTHON" >&6; }
1941else
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1943$as_echo "no" >&6; }
1944fi
1945
1946
1947 fi
1948 am_display_PYTHON=$am_cv_pathless_PYTHON
1949 fi
1950
1951
1952 if test "$PYTHON" = :; then
1953 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
1954 else
1955
1956
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
1958$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
1959if ${am_cv_python_version+:} false; then :
1960 $as_echo_n "(cached) " >&6
1961else
1962 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
1963fi
1964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
1965$as_echo "$am_cv_python_version" >&6; }
1966 PYTHON_VERSION=$am_cv_python_version
1967
1968
1969
1970 PYTHON_PREFIX='${prefix}'
1971
1972 PYTHON_EXEC_PREFIX='${exec_prefix}'
1973
1974
1975
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
1977$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
1978if ${am_cv_python_platform+:} false; then :
1979 $as_echo_n "(cached) " >&6
1980else
1981 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
1982fi
1983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
1984$as_echo "$am_cv_python_platform" >&6; }
1985 PYTHON_PLATFORM=$am_cv_python_platform
1986
1987
1988 # Just factor out some code duplication.
1989 am_python_setup_sysconfig="\
1990import sys
1991# Prefer sysconfig over distutils.sysconfig, for better compatibility
1992# with python 3.x. See automake bug#10227.
1993try:
1994 import sysconfig
1995except ImportError:
1996 can_use_sysconfig = 0
1997else:
1998 can_use_sysconfig = 1
1999# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
2000# <https://github.com/pypa/virtualenv/issues/118>
2001try:
2002 from platform import python_implementation
2003 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
2004 can_use_sysconfig = 0
2005except ImportError:
2006 pass"
2007
2008
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
2010$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
2011if ${am_cv_python_pythondir+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013else
2014 if test "x$prefix" = xNONE
2015 then
2016 am_py_prefix=$ac_default_prefix
2017 else
2018 am_py_prefix=$prefix
2019 fi
2020 am_cv_python_pythondir=`$PYTHON -c "
2021$am_python_setup_sysconfig
2022if can_use_sysconfig:
2023 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
2024else:
2025 from distutils import sysconfig
2026 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
2027sys.stdout.write(sitedir)"`
2028 case $am_cv_python_pythondir in
2029 $am_py_prefix*)
2030 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
2031 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
2032 ;;
2033 *)
2034 case $am_py_prefix in
2035 /usr|/System*) ;;
2036 *)
2037 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
2038 ;;
2039 esac
2040 ;;
2041 esac
2042
2043fi
2044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
2045$as_echo "$am_cv_python_pythondir" >&6; }
2046 pythondir=$am_cv_python_pythondir
2047
2048
2049
2050 pkgpythondir=\${pythondir}/$PACKAGE
2051
2052
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
2054$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
2055if ${am_cv_python_pyexecdir+:} false; then :
2056 $as_echo_n "(cached) " >&6
2057else
2058 if test "x$exec_prefix" = xNONE
2059 then
2060 am_py_exec_prefix=$am_py_prefix
2061 else
2062 am_py_exec_prefix=$exec_prefix
2063 fi
2064 am_cv_python_pyexecdir=`$PYTHON -c "
2065$am_python_setup_sysconfig
2066if can_use_sysconfig:
2067 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
2068else:
2069 from distutils import sysconfig
2070 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
2071sys.stdout.write(sitedir)"`
2072 case $am_cv_python_pyexecdir in
2073 $am_py_exec_prefix*)
2074 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
2075 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
2076 ;;
2077 *)
2078 case $am_py_exec_prefix in
2079 /usr|/System*) ;;
2080 *)
2081 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
2082 ;;
2083 esac
2084 ;;
2085 esac
2086
2087fi
2088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
2089$as_echo "$am_cv_python_pyexecdir" >&6; }
2090 pyexecdir=$am_cv_python_pyexecdir
2091
2092
2093
2094 pkgpyexecdir=\${pyexecdir}/$PACKAGE
2095
2096
2097
2098 fi
2099
2100
2101
2102 if test -z $PYTHON;
2103 then
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002104 PYTHON="python"
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002105 fi
2106 PYTHON_NAME=`basename $PYTHON`
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: distutils" >&5
2108$as_echo_n "checking $PYTHON_NAME module: distutils... " >&6; }
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002109 $PYTHON -c "import distutils" 2>/dev/null
2110 if test $? -eq 0;
2111 then
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002113$as_echo "yes" >&6; }
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002114 eval HAVE_PYMOD_DISTUTILS=yes
2115 else
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002117$as_echo "no" >&6; }
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002118 eval HAVE_PYMOD_DISTUTILS=no
2119 #
2120 if test -n ""
2121 then
2122 as_fn_error $? "failed to find required module distutils" "$LINENO" 5
2123 exit 1
2124 fi
2125 fi
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002126
2127
2128# Extract the first word of "magic", so it can be a program name with args.
2129set dummy magic; ac_word=$2
2130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2131$as_echo_n "checking for $ac_word... " >&6; }
2132if ${ac_cv_path_MAGIC+:} false; then :
2133 $as_echo_n "(cached) " >&6
2134else
2135 case $MAGIC in
2136 [\\/]* | ?:[\\/]*)
2137 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
2138 ;;
2139 *)
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141for as_dir in $PATH
2142do
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147 ac_cv_path_MAGIC="$as_dir/$ac_word$ac_exec_ext"
2148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 break 2
2150 fi
2151done
2152 done
2153IFS=$as_save_IFS
2154
2155 ;;
2156esac
2157fi
2158MAGIC=$ac_cv_path_MAGIC
2159if test -n "$MAGIC"; then
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC" >&5
2161$as_echo "$MAGIC" >&6; }
2162else
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2164$as_echo "no" >&6; }
2165fi
2166
2167
2168if test -z "$MAGIC"; then
2169 as_fn_error $? "You need 'magic' to generate the needed various cell views" "$LINENO" 5
2170fi
2171
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002172# Check for "--with-ef-style"
2173EF_STYLE=0
2174
2175# Check whether --with-ef-style was given.
2176if test "${with_ef_style+set}" = set; then :
2177 withval=$with_ef_style;
2178 pdks_ef_style=$withval
2179 if test "$withval" == "yes" -o "$withval" == "YES"; then
2180 EF_STYLE=1
2181 fi
2182
2183fi
2184
2185
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002186
2187
2188MAKEFILES=$(find .. -name "Makefile.in" | sed 's/\(.*\)\.in/\1/g')
2189ac_config_files="$ac_config_files $MAKEFILES"
2190
2191
2192cat >confcache <<\_ACEOF
2193# This file is a shell script that caches the results of configure
2194# tests run on this system so they can be shared between configure
2195# scripts and configure runs, see configure's option --config-cache.
2196# It is not useful on other systems. If it contains results you don't
2197# want to keep, you may remove or edit it.
2198#
2199# config.status only pays attention to the cache file if you give it
2200# the --recheck option to rerun configure.
2201#
2202# `ac_cv_env_foo' variables (set or unset) will be overridden when
2203# loading this file, other *unset* `ac_cv_foo' will be assigned the
2204# following values.
2205
2206_ACEOF
2207
2208# The following way of writing the cache mishandles newlines in values,
2209# but we know of no workaround that is simple, portable, and efficient.
2210# So, we kill variables containing newlines.
2211# Ultrix sh set writes to stderr and can't be redirected directly,
2212# and sets the high bit in the cache file unless we assign to the vars.
2213(
2214 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2215 eval ac_val=\$$ac_var
2216 case $ac_val in #(
2217 *${as_nl}*)
2218 case $ac_var in #(
2219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2220$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2221 esac
2222 case $ac_var in #(
2223 _ | IFS | as_nl) ;; #(
2224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2225 *) { eval $ac_var=; unset $ac_var;} ;;
2226 esac ;;
2227 esac
2228 done
2229
2230 (set) 2>&1 |
2231 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2232 *${as_nl}ac_space=\ *)
2233 # `set' does not quote correctly, so add quotes: double-quote
2234 # substitution turns \\\\ into \\, and sed turns \\ into \.
2235 sed -n \
2236 "s/'/'\\\\''/g;
2237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2238 ;; #(
2239 *)
2240 # `set' quotes correctly as required by POSIX, so do not add quotes.
2241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2242 ;;
2243 esac |
2244 sort
2245) |
2246 sed '
2247 /^ac_cv_env_/b end
2248 t clear
2249 :clear
2250 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2251 t end
2252 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2253 :end' >>confcache
2254if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2255 if test -w "$cache_file"; then
2256 if test "x$cache_file" != "x/dev/null"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2258$as_echo "$as_me: updating cache $cache_file" >&6;}
2259 if test ! -f "$cache_file" || test -h "$cache_file"; then
2260 cat confcache >"$cache_file"
2261 else
2262 case $cache_file in #(
2263 */* | ?:*)
2264 mv -f confcache "$cache_file"$$ &&
2265 mv -f "$cache_file"$$ "$cache_file" ;; #(
2266 *)
2267 mv -f confcache "$cache_file" ;;
2268 esac
2269 fi
2270 fi
2271 else
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2273$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2274 fi
2275fi
2276rm -f confcache
2277
2278test "x$prefix" = xNONE && prefix=$ac_default_prefix
2279# Let make expand exec_prefix.
2280test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2281
2282# Transform confdefs.h into DEFS.
2283# Protect against shell expansion while executing Makefile rules.
2284# Protect against Makefile macro expansion.
2285#
2286# If the first sed substitution is executed (which looks for macros that
2287# take arguments), then branch to the quote section. Otherwise,
2288# look for a macro that doesn't take arguments.
2289ac_script='
2290:mline
2291/\\$/{
2292 N
2293 s,\\\n,,
2294 b mline
2295}
2296t clear
2297:clear
2298s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2299t quote
2300s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2301t quote
2302b any
2303:quote
2304s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2305s/\[/\\&/g
2306s/\]/\\&/g
2307s/\$/$$/g
2308H
2309:any
2310${
2311 g
2312 s/^\n//
2313 s/\n/ /g
2314 p
2315}
2316'
2317DEFS=`sed -n "$ac_script" confdefs.h`
2318
2319
2320ac_libobjs=
2321ac_ltlibobjs=
2322U=
2323for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2324 # 1. Remove the extension, and $U if already installed.
2325 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2326 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2328 # will be set to the directory where LIBOBJS objects are built.
2329 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2330 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2331done
2332LIBOBJS=$ac_libobjs
2333
2334LTLIBOBJS=$ac_ltlibobjs
2335
2336
2337
2338: "${CONFIG_STATUS=./config.status}"
2339ac_write_fail=0
2340ac_clean_files_save=$ac_clean_files
2341ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2342{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2343$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2344as_write_fail=0
2345cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2346#! $SHELL
2347# Generated by $as_me.
2348# Run this file to recreate the current configuration.
2349# Compiler output produced by configure, useful for debugging
2350# configure, is in config.log if it exists.
2351
2352debug=false
2353ac_cs_recheck=false
2354ac_cs_silent=false
2355
2356SHELL=\${CONFIG_SHELL-$SHELL}
2357export SHELL
2358_ASEOF
2359cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2360## -------------------- ##
2361## M4sh Initialization. ##
2362## -------------------- ##
2363
2364# Be more Bourne compatible
2365DUALCASE=1; export DUALCASE # for MKS sh
2366if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2367 emulate sh
2368 NULLCMD=:
2369 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2370 # is contrary to our usage. Disable this feature.
2371 alias -g '${1+"$@"}'='"$@"'
2372 setopt NO_GLOB_SUBST
2373else
2374 case `(set -o) 2>/dev/null` in #(
2375 *posix*) :
2376 set -o posix ;; #(
2377 *) :
2378 ;;
2379esac
2380fi
2381
2382
2383as_nl='
2384'
2385export as_nl
2386# Printing a long string crashes Solaris 7 /usr/bin/printf.
2387as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2388as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2389as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2390# Prefer a ksh shell builtin over an external printf program on Solaris,
2391# but without wasting forks for bash or zsh.
2392if test -z "$BASH_VERSION$ZSH_VERSION" \
2393 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2394 as_echo='print -r --'
2395 as_echo_n='print -rn --'
2396elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2397 as_echo='printf %s\n'
2398 as_echo_n='printf %s'
2399else
2400 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2401 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2402 as_echo_n='/usr/ucb/echo -n'
2403 else
2404 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2405 as_echo_n_body='eval
2406 arg=$1;
2407 case $arg in #(
2408 *"$as_nl"*)
2409 expr "X$arg" : "X\\(.*\\)$as_nl";
2410 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2411 esac;
2412 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2413 '
2414 export as_echo_n_body
2415 as_echo_n='sh -c $as_echo_n_body as_echo'
2416 fi
2417 export as_echo_body
2418 as_echo='sh -c $as_echo_body as_echo'
2419fi
2420
2421# The user is always right.
2422if test "${PATH_SEPARATOR+set}" != set; then
2423 PATH_SEPARATOR=:
2424 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2425 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2426 PATH_SEPARATOR=';'
2427 }
2428fi
2429
2430
2431# IFS
2432# We need space, tab and new line, in precisely that order. Quoting is
2433# there to prevent editors from complaining about space-tab.
2434# (If _AS_PATH_WALK were called with IFS unset, it would disable word
2435# splitting by setting IFS to empty value.)
2436IFS=" "" $as_nl"
2437
2438# Find who we are. Look in the path if we contain no directory separator.
2439as_myself=
2440case $0 in #((
2441 *[\\/]* ) as_myself=$0 ;;
2442 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443for as_dir in $PATH
2444do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2448 done
2449IFS=$as_save_IFS
2450
2451 ;;
2452esac
2453# We did not find ourselves, most probably we were run as `sh COMMAND'
2454# in which case we are not to be found in the path.
2455if test "x$as_myself" = x; then
2456 as_myself=$0
2457fi
2458if test ! -f "$as_myself"; then
2459 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2460 exit 1
2461fi
2462
2463# Unset variables that we do not need and which cause bugs (e.g. in
2464# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
2465# suppresses any "Segmentation fault" message there. '((' could
2466# trigger a bug in pdksh 5.2.14.
2467for as_var in BASH_ENV ENV MAIL MAILPATH
2468do eval test x\${$as_var+set} = xset \
2469 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2470done
2471PS1='$ '
2472PS2='> '
2473PS4='+ '
2474
2475# NLS nuisances.
2476LC_ALL=C
2477export LC_ALL
2478LANGUAGE=C
2479export LANGUAGE
2480
2481# CDPATH.
2482(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2483
2484
2485# as_fn_error STATUS ERROR [LINENO LOG_FD]
2486# ----------------------------------------
2487# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2488# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2489# script with STATUS, using 1 if that was 0.
2490as_fn_error ()
2491{
2492 as_status=$1; test $as_status -eq 0 && as_status=1
2493 if test "$4"; then
2494 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2496 fi
2497 $as_echo "$as_me: error: $2" >&2
2498 as_fn_exit $as_status
2499} # as_fn_error
2500
2501
2502# as_fn_set_status STATUS
2503# -----------------------
2504# Set $? to STATUS, without forking.
2505as_fn_set_status ()
2506{
2507 return $1
2508} # as_fn_set_status
2509
2510# as_fn_exit STATUS
2511# -----------------
2512# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2513as_fn_exit ()
2514{
2515 set +e
2516 as_fn_set_status $1
2517 exit $1
2518} # as_fn_exit
2519
2520# as_fn_unset VAR
2521# ---------------
2522# Portably unset VAR.
2523as_fn_unset ()
2524{
2525 { eval $1=; unset $1;}
2526}
2527as_unset=as_fn_unset
2528# as_fn_append VAR VALUE
2529# ----------------------
2530# Append the text in VALUE to the end of the definition contained in VAR. Take
2531# advantage of any shell optimizations that allow amortized linear growth over
2532# repeated appends, instead of the typical quadratic growth present in naive
2533# implementations.
2534if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2535 eval 'as_fn_append ()
2536 {
2537 eval $1+=\$2
2538 }'
2539else
2540 as_fn_append ()
2541 {
2542 eval $1=\$$1\$2
2543 }
2544fi # as_fn_append
2545
2546# as_fn_arith ARG...
2547# ------------------
2548# Perform arithmetic evaluation on the ARGs, and store the result in the
2549# global $as_val. Take advantage of shells that can avoid forks. The arguments
2550# must be portable across $(()) and expr.
2551if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
2552 eval 'as_fn_arith ()
2553 {
2554 as_val=$(( $* ))
2555 }'
2556else
2557 as_fn_arith ()
2558 {
2559 as_val=`expr "$@" || test $? -eq 1`
2560 }
2561fi # as_fn_arith
2562
2563
2564if expr a : '\(a\)' >/dev/null 2>&1 &&
2565 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2566 as_expr=expr
2567else
2568 as_expr=false
2569fi
2570
2571if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2572 as_basename=basename
2573else
2574 as_basename=false
2575fi
2576
2577if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2578 as_dirname=dirname
2579else
2580 as_dirname=false
2581fi
2582
2583as_me=`$as_basename -- "$0" ||
2584$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2585 X"$0" : 'X\(//\)$' \| \
2586 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2587$as_echo X/"$0" |
2588 sed '/^.*\/\([^/][^/]*\)\/*$/{
2589 s//\1/
2590 q
2591 }
2592 /^X\/\(\/\/\)$/{
2593 s//\1/
2594 q
2595 }
2596 /^X\/\(\/\).*/{
2597 s//\1/
2598 q
2599 }
2600 s/.*/./; q'`
2601
2602# Avoid depending upon Character Ranges.
2603as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2604as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2605as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2606as_cr_digits='0123456789'
2607as_cr_alnum=$as_cr_Letters$as_cr_digits
2608
2609ECHO_C= ECHO_N= ECHO_T=
2610case `echo -n x` in #(((((
2611-n*)
2612 case `echo 'xy\c'` in
2613 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2614 xy) ECHO_C='\c';;
2615 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2616 ECHO_T=' ';;
2617 esac;;
2618*)
2619 ECHO_N='-n';;
2620esac
2621
2622rm -f conf$$ conf$$.exe conf$$.file
2623if test -d conf$$.dir; then
2624 rm -f conf$$.dir/conf$$.file
2625else
2626 rm -f conf$$.dir
2627 mkdir conf$$.dir 2>/dev/null
2628fi
2629if (echo >conf$$.file) 2>/dev/null; then
2630 if ln -s conf$$.file conf$$ 2>/dev/null; then
2631 as_ln_s='ln -s'
2632 # ... but there are two gotchas:
2633 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2634 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2635 # In both cases, we have to default to `cp -pR'.
2636 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2637 as_ln_s='cp -pR'
2638 elif ln conf$$.file conf$$ 2>/dev/null; then
2639 as_ln_s=ln
2640 else
2641 as_ln_s='cp -pR'
2642 fi
2643else
2644 as_ln_s='cp -pR'
2645fi
2646rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2647rmdir conf$$.dir 2>/dev/null
2648
2649
2650# as_fn_mkdir_p
2651# -------------
2652# Create "$as_dir" as a directory, including parents if necessary.
2653as_fn_mkdir_p ()
2654{
2655
2656 case $as_dir in #(
2657 -*) as_dir=./$as_dir;;
2658 esac
2659 test -d "$as_dir" || eval $as_mkdir_p || {
2660 as_dirs=
2661 while :; do
2662 case $as_dir in #(
2663 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2664 *) as_qdir=$as_dir;;
2665 esac
2666 as_dirs="'$as_qdir' $as_dirs"
2667 as_dir=`$as_dirname -- "$as_dir" ||
2668$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2669 X"$as_dir" : 'X\(//\)[^/]' \| \
2670 X"$as_dir" : 'X\(//\)$' \| \
2671 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2672$as_echo X"$as_dir" |
2673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2674 s//\1/
2675 q
2676 }
2677 /^X\(\/\/\)[^/].*/{
2678 s//\1/
2679 q
2680 }
2681 /^X\(\/\/\)$/{
2682 s//\1/
2683 q
2684 }
2685 /^X\(\/\).*/{
2686 s//\1/
2687 q
2688 }
2689 s/.*/./; q'`
2690 test -d "$as_dir" && break
2691 done
2692 test -z "$as_dirs" || eval "mkdir $as_dirs"
2693 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
2694
2695
2696} # as_fn_mkdir_p
2697if mkdir -p . 2>/dev/null; then
2698 as_mkdir_p='mkdir -p "$as_dir"'
2699else
2700 test -d ./-p && rmdir ./-p
2701 as_mkdir_p=false
2702fi
2703
2704
2705# as_fn_executable_p FILE
2706# -----------------------
2707# Test if FILE is an executable regular file.
2708as_fn_executable_p ()
2709{
2710 test -f "$1" && test -x "$1"
2711} # as_fn_executable_p
2712as_test_x='test -x'
2713as_executable_p=as_fn_executable_p
2714
2715# Sed expression to map a string onto a valid CPP name.
2716as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2717
2718# Sed expression to map a string onto a valid variable name.
2719as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2720
2721
2722exec 6>&1
2723## ----------------------------------- ##
2724## Main body of $CONFIG_STATUS script. ##
2725## ----------------------------------- ##
2726_ASEOF
2727test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
2728
2729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2730# Save the log message, to keep $0 and so on meaningful, and to
2731# report actual input values of CONFIG_FILES etc. instead of their
2732# values after options handling.
2733ac_log="
2734This file was extended by open_pdks $as_me 1.0, which was
2735generated by GNU Autoconf 2.69. Invocation command line was
2736
2737 CONFIG_FILES = $CONFIG_FILES
2738 CONFIG_HEADERS = $CONFIG_HEADERS
2739 CONFIG_LINKS = $CONFIG_LINKS
2740 CONFIG_COMMANDS = $CONFIG_COMMANDS
2741 $ $0 $@
2742
2743on `(hostname || uname -n) 2>/dev/null | sed 1q`
2744"
2745
2746_ACEOF
2747
2748case $ac_config_files in *"
2749"*) set x $ac_config_files; shift; ac_config_files=$*;;
2750esac
2751
2752
2753
2754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2755# Files that config.status was made for.
2756config_files="$ac_config_files"
2757
2758_ACEOF
2759
2760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2761ac_cs_usage="\
2762\`$as_me' instantiates files and other configuration actions
2763from templates according to the current configuration. Unless the files
2764and actions are specified as TAGs, all are instantiated by default.
2765
2766Usage: $0 [OPTION]... [TAG]...
2767
2768 -h, --help print this help, then exit
2769 -V, --version print version number and configuration settings, then exit
2770 --config print configuration, then exit
2771 -q, --quiet, --silent
2772 do not print progress messages
2773 -d, --debug don't remove temporary files
2774 --recheck update $as_me by reconfiguring in the same conditions
2775 --file=FILE[:TEMPLATE]
2776 instantiate the configuration file FILE
2777
2778Configuration files:
2779$config_files
2780
2781Report bugs to <github.com/RTimothyEdwards/open_pdks>."
2782
2783_ACEOF
2784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2785ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2786ac_cs_version="\\
2787open_pdks config.status 1.0
2788configured by $0, generated by GNU Autoconf 2.69,
2789 with options \\"\$ac_cs_config\\"
2790
2791Copyright (C) 2012 Free Software Foundation, Inc.
2792This config.status script is free software; the Free Software Foundation
2793gives unlimited permission to copy, distribute and modify it."
2794
2795ac_pwd='$ac_pwd'
2796srcdir='$srcdir'
2797test -n "\$AWK" || AWK=awk
2798_ACEOF
2799
2800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2801# The default lists apply if the user does not specify any file.
2802ac_need_defaults=:
2803while test $# != 0
2804do
2805 case $1 in
2806 --*=?*)
2807 ac_option=`expr "X$1" : 'X\([^=]*\)='`
2808 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2809 ac_shift=:
2810 ;;
2811 --*=)
2812 ac_option=`expr "X$1" : 'X\([^=]*\)='`
2813 ac_optarg=
2814 ac_shift=:
2815 ;;
2816 *)
2817 ac_option=$1
2818 ac_optarg=$2
2819 ac_shift=shift
2820 ;;
2821 esac
2822
2823 case $ac_option in
2824 # Handling of the options.
2825 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2826 ac_cs_recheck=: ;;
2827 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
2828 $as_echo "$ac_cs_version"; exit ;;
2829 --config | --confi | --conf | --con | --co | --c )
2830 $as_echo "$ac_cs_config"; exit ;;
2831 --debug | --debu | --deb | --de | --d | -d )
2832 debug=: ;;
2833 --file | --fil | --fi | --f )
2834 $ac_shift
2835 case $ac_optarg in
2836 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2837 '') as_fn_error $? "missing file argument" ;;
2838 esac
2839 as_fn_append CONFIG_FILES " '$ac_optarg'"
2840 ac_need_defaults=false;;
2841 --he | --h | --help | --hel | -h )
2842 $as_echo "$ac_cs_usage"; exit ;;
2843 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2844 | -silent | --silent | --silen | --sile | --sil | --si | --s)
2845 ac_cs_silent=: ;;
2846
2847 # This is an error.
2848 -*) as_fn_error $? "unrecognized option: \`$1'
2849Try \`$0 --help' for more information." ;;
2850
2851 *) as_fn_append ac_config_targets " $1"
2852 ac_need_defaults=false ;;
2853
2854 esac
2855 shift
2856done
2857
2858ac_configure_extra_args=
2859
2860if $ac_cs_silent; then
2861 exec 6>/dev/null
2862 ac_configure_extra_args="$ac_configure_extra_args --silent"
2863fi
2864
2865_ACEOF
2866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2867if \$ac_cs_recheck; then
2868 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2869 shift
2870 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
2871 CONFIG_SHELL='$SHELL'
2872 export CONFIG_SHELL
2873 exec "\$@"
2874fi
2875
2876_ACEOF
2877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2878exec 5>>config.log
2879{
2880 echo
2881 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2882## Running $as_me. ##
2883_ASBOX
2884 $as_echo "$ac_log"
2885} >&5
2886
2887_ACEOF
2888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2889_ACEOF
2890
2891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2892
2893# Handling of arguments.
2894for ac_config_target in $ac_config_targets
2895do
2896 case $ac_config_target in
2897 "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;;
2898
2899 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
2900 esac
2901done
2902
2903
2904# If the user did not use the arguments to specify the items to instantiate,
2905# then the envvar interface is used. Set only those that are not.
2906# We use the long form for the default assignment because of an extremely
2907# bizarre bug on SunOS 4.1.3.
2908if $ac_need_defaults; then
2909 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2910fi
2911
2912# Have a temporary directory for convenience. Make it in the build tree
2913# simply because there is no reason against having it here, and in addition,
2914# creating and moving files from /tmp can sometimes cause problems.
2915# Hook for its removal unless debugging.
2916# Note that there is a small window in which the directory will not be cleaned:
2917# after its creation but before its name has been assigned to `$tmp'.
2918$debug ||
2919{
2920 tmp= ac_tmp=
2921 trap 'exit_status=$?
2922 : "${ac_tmp:=$tmp}"
2923 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
2924' 0
2925 trap 'as_fn_exit 1' 1 2 13 15
2926}
2927# Create a (secure) tmp directory for tmp files.
2928
2929{
2930 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2931 test -d "$tmp"
2932} ||
2933{
2934 tmp=./conf$$-$RANDOM
2935 (umask 077 && mkdir "$tmp")
2936} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
2937ac_tmp=$tmp
2938
2939# Set up the scripts for CONFIG_FILES section.
2940# No need to generate them if there are no CONFIG_FILES.
2941# This happens for instance with `./config.status config.h'.
2942if test -n "$CONFIG_FILES"; then
2943
2944
2945ac_cr=`echo X | tr X '\015'`
2946# On cygwin, bash can eat \r inside `` if the user requested igncr.
2947# But we know of no other shell where ac_cr would be empty at this
2948# point, so we can use a bashism as a fallback.
2949if test "x$ac_cr" = x; then
2950 eval ac_cr=\$\'\\r\'
2951fi
2952ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
2953if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
2954 ac_cs_awk_cr='\\r'
2955else
2956 ac_cs_awk_cr=$ac_cr
2957fi
2958
2959echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
2960_ACEOF
2961
2962
2963{
2964 echo "cat >conf$$subs.awk <<_ACEOF" &&
2965 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
2966 echo "_ACEOF"
2967} >conf$$subs.sh ||
2968 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2969ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
2970ac_delim='%!_!# '
2971for ac_last_try in false false false false false :; do
2972 . ./conf$$subs.sh ||
2973 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2974
2975 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
2976 if test $ac_delim_n = $ac_delim_num; then
2977 break
2978 elif $ac_last_try; then
2979 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2980 else
2981 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
2982 fi
2983done
2984rm -f conf$$subs.sh
2985
2986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2987cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2988_ACEOF
2989sed -n '
2990h
2991s/^/S["/; s/!.*/"]=/
2992p
2993g
2994s/^[^!]*!//
2995:repl
2996t repl
2997s/'"$ac_delim"'$//
2998t delim
2999:nl
3000h
3001s/\(.\{148\}\)..*/\1/
3002t more1
3003s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3004p
3005n
3006b repl
3007:more1
3008s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3009p
3010g
3011s/.\{148\}//
3012t nl
3013:delim
3014h
3015s/\(.\{148\}\)..*/\1/
3016t more2
3017s/["\\]/\\&/g; s/^/"/; s/$/"/
3018p
3019b
3020:more2
3021s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3022p
3023g
3024s/.\{148\}//
3025t delim
3026' <conf$$subs.awk | sed '
3027/^[^""]/{
3028 N
3029 s/\n//
3030}
3031' >>$CONFIG_STATUS || ac_write_fail=1
3032rm -f conf$$subs.awk
3033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3034_ACAWK
3035cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3036 for (key in S) S_is_set[key] = 1
3037 FS = ""
3038
3039}
3040{
3041 line = $ 0
3042 nfields = split(line, field, "@")
3043 substed = 0
3044 len = length(field[1])
3045 for (i = 2; i < nfields; i++) {
3046 key = field[i]
3047 keylen = length(key)
3048 if (S_is_set[key]) {
3049 value = S[key]
3050 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3051 len += length(value) + length(field[++i])
3052 substed = 1
3053 } else
3054 len += 1 + keylen
3055 }
3056
3057 print line
3058}
3059
3060_ACAWK
3061_ACEOF
3062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3063if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3064 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3065else
3066 cat
3067fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3068 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3069_ACEOF
3070
3071# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3072# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3073# trailing colons and then remove the whole line if VPATH becomes empty
3074# (actually we leave an empty line to preserve line numbers).
3075if test "x$srcdir" = x.; then
3076 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3077h
3078s///
3079s/^/:/
3080s/[ ]*$/:/
3081s/:\$(srcdir):/:/g
3082s/:\${srcdir}:/:/g
3083s/:@srcdir@:/:/g
3084s/^:*//
3085s/:*$//
3086x
3087s/\(=[ ]*\).*/\1/
3088G
3089s/\n//
3090s/^[^=]*=[ ]*$//
3091}'
3092fi
3093
3094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3095fi # test -n "$CONFIG_FILES"
3096
3097
3098eval set X " :F $CONFIG_FILES "
3099shift
3100for ac_tag
3101do
3102 case $ac_tag in
3103 :[FHLC]) ac_mode=$ac_tag; continue;;
3104 esac
3105 case $ac_mode$ac_tag in
3106 :[FHL]*:*);;
3107 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3108 :[FH]-) ac_tag=-:-;;
3109 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3110 esac
3111 ac_save_IFS=$IFS
3112 IFS=:
3113 set x $ac_tag
3114 IFS=$ac_save_IFS
3115 shift
3116 ac_file=$1
3117 shift
3118
3119 case $ac_mode in
3120 :L) ac_source=$1;;
3121 :[FH])
3122 ac_file_inputs=
3123 for ac_f
3124 do
3125 case $ac_f in
3126 -) ac_f="$ac_tmp/stdin";;
3127 *) # Look for the file first in the build tree, then in the source tree
3128 # (if the path is not absolute). The absolute path cannot be DOS-style,
3129 # because $ac_f cannot contain `:'.
3130 test -f "$ac_f" ||
3131 case $ac_f in
3132 [\\/$]*) false;;
3133 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3134 esac ||
3135 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3136 esac
3137 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3138 as_fn_append ac_file_inputs " '$ac_f'"
3139 done
3140
3141 # Let's still pretend it is `configure' which instantiates (i.e., don't
3142 # use $as_me), people would be surprised to read:
3143 # /* config.h. Generated by config.status. */
3144 configure_input='Generated from '`
3145 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3146 `' by configure.'
3147 if test x"$ac_file" != x-; then
3148 configure_input="$ac_file. $configure_input"
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3150$as_echo "$as_me: creating $ac_file" >&6;}
3151 fi
3152 # Neutralize special characters interpreted by sed in replacement strings.
3153 case $configure_input in #(
3154 *\&* | *\|* | *\\* )
3155 ac_sed_conf_input=`$as_echo "$configure_input" |
3156 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3157 *) ac_sed_conf_input=$configure_input;;
3158 esac
3159
3160 case $ac_tag in
3161 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3163 esac
3164 ;;
3165 esac
3166
3167 ac_dir=`$as_dirname -- "$ac_file" ||
3168$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3169 X"$ac_file" : 'X\(//\)[^/]' \| \
3170 X"$ac_file" : 'X\(//\)$' \| \
3171 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3172$as_echo X"$ac_file" |
3173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3174 s//\1/
3175 q
3176 }
3177 /^X\(\/\/\)[^/].*/{
3178 s//\1/
3179 q
3180 }
3181 /^X\(\/\/\)$/{
3182 s//\1/
3183 q
3184 }
3185 /^X\(\/\).*/{
3186 s//\1/
3187 q
3188 }
3189 s/.*/./; q'`
3190 as_dir="$ac_dir"; as_fn_mkdir_p
3191 ac_builddir=.
3192
3193case "$ac_dir" in
3194.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3195*)
3196 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3197 # A ".." for each directory in $ac_dir_suffix.
3198 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3199 case $ac_top_builddir_sub in
3200 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3201 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3202 esac ;;
3203esac
3204ac_abs_top_builddir=$ac_pwd
3205ac_abs_builddir=$ac_pwd$ac_dir_suffix
3206# for backward compatibility:
3207ac_top_builddir=$ac_top_build_prefix
3208
3209case $srcdir in
3210 .) # We are building in place.
3211 ac_srcdir=.
3212 ac_top_srcdir=$ac_top_builddir_sub
3213 ac_abs_top_srcdir=$ac_pwd ;;
3214 [\\/]* | ?:[\\/]* ) # Absolute name.
3215 ac_srcdir=$srcdir$ac_dir_suffix;
3216 ac_top_srcdir=$srcdir
3217 ac_abs_top_srcdir=$srcdir ;;
3218 *) # Relative name.
3219 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3220 ac_top_srcdir=$ac_top_build_prefix$srcdir
3221 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3222esac
3223ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3224
3225
3226 case $ac_mode in
3227 :F)
3228 #
3229 # CONFIG_FILE
3230 #
3231
3232_ACEOF
3233
3234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3235# If the template does not know about datarootdir, expand it.
3236# FIXME: This hack should be removed a few years after 2.60.
3237ac_datarootdir_hack=; ac_datarootdir_seen=
3238ac_sed_dataroot='
3239/datarootdir/ {
3240 p
3241 q
3242}
3243/@datadir@/p
3244/@docdir@/p
3245/@infodir@/p
3246/@localedir@/p
3247/@mandir@/p'
3248case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3249*datarootdir*) ac_datarootdir_seen=yes;;
3250*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3252$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3253_ACEOF
3254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3255 ac_datarootdir_hack='
3256 s&@datadir@&$datadir&g
3257 s&@docdir@&$docdir&g
3258 s&@infodir@&$infodir&g
3259 s&@localedir@&$localedir&g
3260 s&@mandir@&$mandir&g
3261 s&\\\${datarootdir}&$datarootdir&g' ;;
3262esac
3263_ACEOF
3264
3265# Neutralize VPATH when `$srcdir' = `.'.
3266# Shell code in configure.ac might set extrasub.
3267# FIXME: do we really want to maintain this feature?
3268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3269ac_sed_extra="$ac_vpsub
3270$extrasub
3271_ACEOF
3272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3273:t
3274/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3275s|@configure_input@|$ac_sed_conf_input|;t t
3276s&@top_builddir@&$ac_top_builddir_sub&;t t
3277s&@top_build_prefix@&$ac_top_build_prefix&;t t
3278s&@srcdir@&$ac_srcdir&;t t
3279s&@abs_srcdir@&$ac_abs_srcdir&;t t
3280s&@top_srcdir@&$ac_top_srcdir&;t t
3281s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3282s&@builddir@&$ac_builddir&;t t
3283s&@abs_builddir@&$ac_abs_builddir&;t t
3284s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3285$ac_datarootdir_hack
3286"
3287eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3288 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3289
3290test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3291 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3292 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3293 "$ac_tmp/out"`; test -z "$ac_out"; } &&
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3295which seems to be undefined. Please make sure it is defined" >&5
3296$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3297which seems to be undefined. Please make sure it is defined" >&2;}
3298
3299 rm -f "$ac_tmp/stdin"
3300 case $ac_file in
3301 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3302 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3303 esac \
3304 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3305 ;;
3306
3307
3308
3309 esac
3310
3311done # for ac_tag
3312
3313
3314as_fn_exit 0
3315_ACEOF
3316ac_clean_files=$ac_clean_files_save
3317
3318test $ac_write_fail = 0 ||
3319 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3320
3321
3322# configure is writing to config.log, and then calls config.status.
3323# config.status does its own redirection, appending to config.log.
3324# Unfortunately, on DOS this fails, as config.log is still kept open
3325# by configure, so config.status won't be able to write to it; its
3326# output is simply discarded. So we exec the FD to /dev/null,
3327# effectively closing config.log, so it can be properly (re)opened and
3328# appended to by config.status. When coming back to configure, we
3329# need to make the FD available again.
3330if test "$no_create" != yes; then
3331 ac_cs_success=:
3332 ac_config_status_args=
3333 test "$silent" = yes &&
3334 ac_config_status_args="$ac_config_status_args --quiet"
3335 exec 5>/dev/null
3336 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3337 exec 5>>config.log
3338 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3339 # would make configure fail if this is the last instruction.
3340 $ac_cs_success || as_fn_exit 1
3341fi
3342if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3344$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3345fi
3346
3347
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Build configured successfully" >&5
3349$as_echo "Build configured successfully" >&6; }