blob: 7beeacc58e44a50eb271d4aa452900f33ea77a68 [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'\" &&
Tim Edwards665c3fd2021-05-02 20:20:27 -0400200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: github.com/RTimothyEdwards/open_pdks about your system,
271$0: including any error possibly output before this
272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425else
426 as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431else
432 as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537else
538 as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='open_pdks'
582PACKAGE_TARNAME='open_pdks'
583PACKAGE_VERSION='1.0'
584PACKAGE_STRING='open_pdks 1.0'
585PACKAGE_BUGREPORT='github.com/RTimothyEdwards/open_pdks'
586PACKAGE_URL=''
587
588ac_subst_vars='LTLIBOBJS
589LIBOBJS
Tim Edwards3c02c082021-11-26 13:48:33 -0500590ENABLED_TECHS
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400591EF_STYLE
Tim Edwardscdfec5e2021-04-22 20:59:13 -0400592SKY130_OSU_T18_PATH
593SKY130_OSU_T15_PATH
594SKY130_OSU_T12_PATH
Tim Edwardscdfec5e2021-04-22 20:59:13 -0400595SKY130_SRAM_MACROS_PATH
Tim Edwards1168a8b2021-02-10 22:06:54 -0500596XSCHEM_SKY130_PATH
Tim Edwards8292c902020-12-24 16:25:25 -0500597SKY130_ML_XX_HD_PATH
Ahmed Ghazy32385482021-01-19 20:38:14 +0200598PATCH
Tim Edwards8292c902020-12-24 16:25:25 -0500599MAGIC
Tim Edwards1168a8b2021-02-10 22:06:54 -0500600XSCHEM_DISABLED
Tim Edwardsccaea722020-12-24 10:59:42 -0500601QFLOW_DISABLED
602OPENLANE_DISABLED
Tim Edwards367711e2021-01-27 10:35:12 -0500603IRSIM_DISABLED
Tim Edwardsccaea722020-12-24 10:59:42 -0500604NETGEN_DISABLED
605MAGIC_DISABLED
606KLAYOUT_DISABLED
Tim Edwards3c02c082021-11-26 13:48:33 -0500607ALL_TECHS
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400608SKY130_SOURCE_PATH
Tim Edwards8292c902020-12-24 16:25:25 -0500609SKY130_LINK_TARGETS
Tim Edwards665c3fd2021-05-02 20:20:27 -0400610SED
Tim Edwards66e53e52021-01-24 21:21:36 -0500611pkgpyexecdir
612pyexecdir
613pkgpythondir
614pythondir
615PYTHON_PLATFORM
616PYTHON_EXEC_PREFIX
617PYTHON_PREFIX
618PYTHON_VERSION
619PYTHON
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200620target_alias
621host_alias
622build_alias
623LIBS
624ECHO_T
625ECHO_N
626ECHO_C
627DEFS
628mandir
629localedir
630libdir
631psdir
632pdfdir
633dvidir
634htmldir
635infodir
636docdir
637oldincludedir
638includedir
Tim Edwards0b8fd2f2021-09-14 10:19:16 -0400639runstatedir
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200640localstatedir
641sharedstatedir
642sysconfdir
643datadir
644datarootdir
645libexecdir
646sbindir
647bindir
648program_transform_name
649prefix
650exec_prefix
651PACKAGE_URL
652PACKAGE_BUGREPORT
653PACKAGE_STRING
654PACKAGE_VERSION
655PACKAGE_TARNAME
656PACKAGE_NAME
657PATH_SEPARATOR
658SHELL'
659ac_subst_files=''
660ac_user_opts='
661enable_option_checking
Tim Edwards8292c902020-12-24 16:25:25 -0500662enable_sky130_pdk
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400663with_sky130_link_targets
Tim Edwardsccaea722020-12-24 10:59:42 -0500664enable_klayout
665enable_magic
666enable_netgen
Tim Edwards367711e2021-01-27 10:35:12 -0500667enable_irsim
Tim Edwardsccaea722020-12-24 10:59:42 -0500668enable_openlane
669enable_qflow
Tim Edwards8292c902020-12-24 16:25:25 -0500670enable_xschem
Tim Edwards1168a8b2021-02-10 22:06:54 -0500671enable_alpha_sky130
672enable_xschem_sky130
Tim Edwardscdfec5e2021-04-22 20:59:13 -0400673enable_sram_sky130
Tim Edwardscdfec5e2021-04-22 20:59:13 -0400674enable_osu_t12_sky130
675enable_osu_t15_sky130
676enable_osu_t18_sky130
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400677with_ef_style
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200678'
679 ac_precious_vars='build_alias
680host_alias
681target_alias
682PYTHON'
683
684
685# Initialize some variables set by options.
686ac_init_help=
687ac_init_version=false
688ac_unrecognized_opts=
689ac_unrecognized_sep=
690# The variables have the same names as the options, with
691# dashes changed to underlines.
692cache_file=/dev/null
693exec_prefix=NONE
694no_create=
695no_recursion=
696prefix=NONE
697program_prefix=NONE
698program_suffix=NONE
699program_transform_name=s,x,x,
700silent=
701site=
702srcdir=
703verbose=
704x_includes=NONE
705x_libraries=NONE
706
707# Installation directory options.
708# These are left unexpanded so users can "make install exec_prefix=/foo"
709# and all the variables that are supposed to be based on exec_prefix
710# by default will actually change.
711# Use braces instead of parens because sh, perl, etc. also accept them.
712# (The list follows the same order as the GNU Coding Standards.)
713bindir='${exec_prefix}/bin'
714sbindir='${exec_prefix}/sbin'
715libexecdir='${exec_prefix}/libexec'
716datarootdir='${prefix}/share'
717datadir='${datarootdir}'
718sysconfdir='${prefix}/etc'
719sharedstatedir='${prefix}/com'
720localstatedir='${prefix}/var'
Tim Edwards0b8fd2f2021-09-14 10:19:16 -0400721runstatedir='${localstatedir}/run'
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200722includedir='${prefix}/include'
723oldincludedir='/usr/include'
724docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
725infodir='${datarootdir}/info'
726htmldir='${docdir}'
727dvidir='${docdir}'
728pdfdir='${docdir}'
729psdir='${docdir}'
730libdir='${exec_prefix}/lib'
731localedir='${datarootdir}/locale'
732mandir='${datarootdir}/man'
733
734ac_prev=
735ac_dashdash=
736for ac_option
737do
738 # If the previous option needs an argument, assign it.
739 if test -n "$ac_prev"; then
740 eval $ac_prev=\$ac_option
741 ac_prev=
742 continue
743 fi
744
745 case $ac_option in
746 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
747 *=) ac_optarg= ;;
748 *) ac_optarg=yes ;;
749 esac
750
751 # Accept the important Cygnus configure options, so we can diagnose typos.
752
753 case $ac_dashdash$ac_option in
754 --)
755 ac_dashdash=yes ;;
756
757 -bindir | --bindir | --bindi | --bind | --bin | --bi)
758 ac_prev=bindir ;;
759 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
760 bindir=$ac_optarg ;;
761
762 -build | --build | --buil | --bui | --bu)
763 ac_prev=build_alias ;;
764 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
765 build_alias=$ac_optarg ;;
766
767 -cache-file | --cache-file | --cache-fil | --cache-fi \
768 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
769 ac_prev=cache_file ;;
770 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
771 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
772 cache_file=$ac_optarg ;;
773
774 --config-cache | -C)
775 cache_file=config.cache ;;
776
777 -datadir | --datadir | --datadi | --datad)
778 ac_prev=datadir ;;
779 -datadir=* | --datadir=* | --datadi=* | --datad=*)
780 datadir=$ac_optarg ;;
781
782 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
783 | --dataroo | --dataro | --datar)
784 ac_prev=datarootdir ;;
785 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
786 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
787 datarootdir=$ac_optarg ;;
788
789 -disable-* | --disable-*)
790 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
793 as_fn_error $? "invalid feature name: $ac_useropt"
794 ac_useropt_orig=$ac_useropt
795 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
796 case $ac_user_opts in
797 *"
798"enable_$ac_useropt"
799"*) ;;
800 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
801 ac_unrecognized_sep=', ';;
802 esac
803 eval enable_$ac_useropt=no ;;
804
805 -docdir | --docdir | --docdi | --doc | --do)
806 ac_prev=docdir ;;
807 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
808 docdir=$ac_optarg ;;
809
810 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
811 ac_prev=dvidir ;;
812 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
813 dvidir=$ac_optarg ;;
814
815 -enable-* | --enable-*)
816 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
817 # Reject names that are not valid shell variable names.
818 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
819 as_fn_error $? "invalid feature name: $ac_useropt"
820 ac_useropt_orig=$ac_useropt
821 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
822 case $ac_user_opts in
823 *"
824"enable_$ac_useropt"
825"*) ;;
826 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
827 ac_unrecognized_sep=', ';;
828 esac
829 eval enable_$ac_useropt=\$ac_optarg ;;
830
831 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
832 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
833 | --exec | --exe | --ex)
834 ac_prev=exec_prefix ;;
835 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
836 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
837 | --exec=* | --exe=* | --ex=*)
838 exec_prefix=$ac_optarg ;;
839
840 -gas | --gas | --ga | --g)
841 # Obsolete; use --with-gas.
842 with_gas=yes ;;
843
844 -help | --help | --hel | --he | -h)
845 ac_init_help=long ;;
846 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
847 ac_init_help=recursive ;;
848 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
849 ac_init_help=short ;;
850
851 -host | --host | --hos | --ho)
852 ac_prev=host_alias ;;
853 -host=* | --host=* | --hos=* | --ho=*)
854 host_alias=$ac_optarg ;;
855
856 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
857 ac_prev=htmldir ;;
858 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
859 | --ht=*)
860 htmldir=$ac_optarg ;;
861
862 -includedir | --includedir | --includedi | --included | --include \
863 | --includ | --inclu | --incl | --inc)
864 ac_prev=includedir ;;
865 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
866 | --includ=* | --inclu=* | --incl=* | --inc=*)
867 includedir=$ac_optarg ;;
868
869 -infodir | --infodir | --infodi | --infod | --info | --inf)
870 ac_prev=infodir ;;
871 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
872 infodir=$ac_optarg ;;
873
874 -libdir | --libdir | --libdi | --libd)
875 ac_prev=libdir ;;
876 -libdir=* | --libdir=* | --libdi=* | --libd=*)
877 libdir=$ac_optarg ;;
878
879 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
880 | --libexe | --libex | --libe)
881 ac_prev=libexecdir ;;
882 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
883 | --libexe=* | --libex=* | --libe=*)
884 libexecdir=$ac_optarg ;;
885
886 -localedir | --localedir | --localedi | --localed | --locale)
887 ac_prev=localedir ;;
888 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
889 localedir=$ac_optarg ;;
890
891 -localstatedir | --localstatedir | --localstatedi | --localstated \
892 | --localstate | --localstat | --localsta | --localst | --locals)
893 ac_prev=localstatedir ;;
894 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
895 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
896 localstatedir=$ac_optarg ;;
897
898 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
899 ac_prev=mandir ;;
900 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
901 mandir=$ac_optarg ;;
902
903 -nfp | --nfp | --nf)
904 # Obsolete; use --without-fp.
905 with_fp=no ;;
906
907 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
908 | --no-cr | --no-c | -n)
909 no_create=yes ;;
910
911 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
912 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
913 no_recursion=yes ;;
914
915 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
916 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
917 | --oldin | --oldi | --old | --ol | --o)
918 ac_prev=oldincludedir ;;
919 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
920 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
921 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
922 oldincludedir=$ac_optarg ;;
923
924 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
925 ac_prev=prefix ;;
926 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
927 prefix=$ac_optarg ;;
928
929 -program-prefix | --program-prefix | --program-prefi | --program-pref \
930 | --program-pre | --program-pr | --program-p)
931 ac_prev=program_prefix ;;
932 -program-prefix=* | --program-prefix=* | --program-prefi=* \
933 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
934 program_prefix=$ac_optarg ;;
935
936 -program-suffix | --program-suffix | --program-suffi | --program-suff \
937 | --program-suf | --program-su | --program-s)
938 ac_prev=program_suffix ;;
939 -program-suffix=* | --program-suffix=* | --program-suffi=* \
940 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
941 program_suffix=$ac_optarg ;;
942
943 -program-transform-name | --program-transform-name \
944 | --program-transform-nam | --program-transform-na \
945 | --program-transform-n | --program-transform- \
946 | --program-transform | --program-transfor \
947 | --program-transfo | --program-transf \
948 | --program-trans | --program-tran \
949 | --progr-tra | --program-tr | --program-t)
950 ac_prev=program_transform_name ;;
951 -program-transform-name=* | --program-transform-name=* \
952 | --program-transform-nam=* | --program-transform-na=* \
953 | --program-transform-n=* | --program-transform-=* \
954 | --program-transform=* | --program-transfor=* \
955 | --program-transfo=* | --program-transf=* \
956 | --program-trans=* | --program-tran=* \
957 | --progr-tra=* | --program-tr=* | --program-t=*)
958 program_transform_name=$ac_optarg ;;
959
960 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
961 ac_prev=pdfdir ;;
962 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
963 pdfdir=$ac_optarg ;;
964
965 -psdir | --psdir | --psdi | --psd | --ps)
966 ac_prev=psdir ;;
967 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
968 psdir=$ac_optarg ;;
969
970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
971 | -silent | --silent | --silen | --sile | --sil)
972 silent=yes ;;
973
Tim Edwards0b8fd2f2021-09-14 10:19:16 -0400974 -runstatedir | --runstatedir | --runstatedi | --runstated \
975 | --runstate | --runstat | --runsta | --runst | --runs \
976 | --run | --ru | --r)
977 ac_prev=runstatedir ;;
978 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
979 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
980 | --run=* | --ru=* | --r=*)
981 runstatedir=$ac_optarg ;;
982
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200983 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
984 ac_prev=sbindir ;;
985 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
986 | --sbi=* | --sb=*)
987 sbindir=$ac_optarg ;;
988
989 -sharedstatedir | --sharedstatedir | --sharedstatedi \
990 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
991 | --sharedst | --shareds | --shared | --share | --shar \
992 | --sha | --sh)
993 ac_prev=sharedstatedir ;;
994 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
995 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
996 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
997 | --sha=* | --sh=*)
998 sharedstatedir=$ac_optarg ;;
999
1000 -site | --site | --sit)
1001 ac_prev=site ;;
1002 -site=* | --site=* | --sit=*)
1003 site=$ac_optarg ;;
1004
1005 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1006 ac_prev=srcdir ;;
1007 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1008 srcdir=$ac_optarg ;;
1009
1010 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1011 | --syscon | --sysco | --sysc | --sys | --sy)
1012 ac_prev=sysconfdir ;;
1013 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1014 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1015 sysconfdir=$ac_optarg ;;
1016
1017 -target | --target | --targe | --targ | --tar | --ta | --t)
1018 ac_prev=target_alias ;;
1019 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1020 target_alias=$ac_optarg ;;
1021
1022 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1023 verbose=yes ;;
1024
1025 -version | --version | --versio | --versi | --vers | -V)
1026 ac_init_version=: ;;
1027
1028 -with-* | --with-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid package name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1036 *"
1037"with_$ac_useropt"
1038"*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval with_$ac_useropt=\$ac_optarg ;;
1043
1044 -without-* | --without-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error $? "invalid package name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053"with_$ac_useropt"
1054"*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval with_$ac_useropt=no ;;
1059
1060 --x)
1061 # Obsolete; use --with-x.
1062 with_x=yes ;;
1063
1064 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1065 | --x-incl | --x-inc | --x-in | --x-i)
1066 ac_prev=x_includes ;;
1067 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1068 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1069 x_includes=$ac_optarg ;;
1070
1071 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1072 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1073 ac_prev=x_libraries ;;
1074 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1075 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1076 x_libraries=$ac_optarg ;;
1077
1078 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1079Try \`$0 --help' for more information"
1080 ;;
1081
1082 *=*)
1083 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1084 # Reject names that are not valid shell variable names.
1085 case $ac_envvar in #(
1086 '' | [0-9]* | *[!_$as_cr_alnum]* )
1087 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1088 esac
1089 eval $ac_envvar=\$ac_optarg
1090 export $ac_envvar ;;
1091
1092 *)
1093 # FIXME: should be removed in autoconf 3.0.
1094 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1098 ;;
1099
1100 esac
1101done
1102
1103if test -n "$ac_prev"; then
1104 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1105 as_fn_error $? "missing argument to $ac_option"
1106fi
1107
1108if test -n "$ac_unrecognized_opts"; then
1109 case $enable_option_checking in
1110 no) ;;
1111 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1112 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1113 esac
1114fi
1115
1116# Check all directory arguments for consistency.
1117for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1118 datadir sysconfdir sharedstatedir localstatedir includedir \
1119 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Tim Edwards0b8fd2f2021-09-14 10:19:16 -04001120 libdir localedir mandir runstatedir
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001121do
1122 eval ac_val=\$$ac_var
1123 # Remove trailing slashes.
1124 case $ac_val in
1125 */ )
1126 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1127 eval $ac_var=\$ac_val;;
1128 esac
1129 # Be sure to have absolute directory names.
1130 case $ac_val in
1131 [\\/$]* | ?:[\\/]* ) continue;;
1132 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1133 esac
1134 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1135done
1136
1137# There might be people who depend on the old broken behavior: `$host'
1138# used to hold the argument of --host etc.
1139# FIXME: To remove some day.
1140build=$build_alias
1141host=$host_alias
1142target=$target_alias
1143
1144# FIXME: To remove some day.
1145if test "x$host_alias" != x; then
1146 if test "x$build_alias" = x; then
1147 cross_compiling=maybe
1148 elif test "x$build_alias" != "x$host_alias"; then
1149 cross_compiling=yes
1150 fi
1151fi
1152
1153ac_tool_prefix=
1154test -n "$host_alias" && ac_tool_prefix=$host_alias-
1155
1156test "$silent" = yes && exec 6>/dev/null
1157
1158
1159ac_pwd=`pwd` && test -n "$ac_pwd" &&
1160ac_ls_di=`ls -di .` &&
1161ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1162 as_fn_error $? "working directory cannot be determined"
1163test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1164 as_fn_error $? "pwd does not report name of working directory"
1165
1166
1167# Find the source files, if location was not specified.
1168if test -z "$srcdir"; then
1169 ac_srcdir_defaulted=yes
1170 # Try the directory containing this script, then the parent directory.
1171 ac_confdir=`$as_dirname -- "$as_myself" ||
1172$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1173 X"$as_myself" : 'X\(//\)[^/]' \| \
1174 X"$as_myself" : 'X\(//\)$' \| \
1175 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1176$as_echo X"$as_myself" |
1177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1178 s//\1/
1179 q
1180 }
1181 /^X\(\/\/\)[^/].*/{
1182 s//\1/
1183 q
1184 }
1185 /^X\(\/\/\)$/{
1186 s//\1/
1187 q
1188 }
1189 /^X\(\/\).*/{
1190 s//\1/
1191 q
1192 }
1193 s/.*/./; q'`
1194 srcdir=$ac_confdir
1195 if test ! -r "$srcdir/$ac_unique_file"; then
1196 srcdir=..
1197 fi
1198else
1199 ac_srcdir_defaulted=no
1200fi
1201if test ! -r "$srcdir/$ac_unique_file"; then
1202 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1203 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1204fi
1205ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1206ac_abs_confdir=`(
1207 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1208 pwd)`
1209# When building in place, set srcdir=.
1210if test "$ac_abs_confdir" = "$ac_pwd"; then
1211 srcdir=.
1212fi
1213# Remove unnecessary trailing slashes from srcdir.
1214# Double slashes in file names in object file debugging info
1215# mess up M-x gdb in Emacs.
1216case $srcdir in
1217*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1218esac
1219for ac_var in $ac_precious_vars; do
1220 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1221 eval ac_env_${ac_var}_value=\$${ac_var}
1222 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1223 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1224done
1225
1226#
1227# Report the --help message.
1228#
1229if test "$ac_init_help" = "long"; then
1230 # Omit some internal or obsolete options to make the list less imposing.
1231 # This message is too long to be a string in the A/UX 3.1 sh.
1232 cat <<_ACEOF
1233\`configure' configures open_pdks 1.0 to adapt to many kinds of systems.
1234
1235Usage: $0 [OPTION]... [VAR=VALUE]...
1236
1237To assign environment variables (e.g., CC, CFLAGS...), specify them as
1238VAR=VALUE. See below for descriptions of some of the useful variables.
1239
1240Defaults for the options are specified in brackets.
1241
1242Configuration:
1243 -h, --help display this help and exit
1244 --help=short display options specific to this package
1245 --help=recursive display the short help of all the included packages
1246 -V, --version display version information and exit
1247 -q, --quiet, --silent do not print \`checking ...' messages
1248 --cache-file=FILE cache test results in FILE [disabled]
1249 -C, --config-cache alias for \`--cache-file=config.cache'
1250 -n, --no-create do not create output files
1251 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1252
1253Installation directories:
1254 --prefix=PREFIX install architecture-independent files in PREFIX
1255 [$ac_default_prefix]
1256 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1257 [PREFIX]
1258
1259By default, \`make install' will install all the files in
1260\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1261an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1262for instance \`--prefix=\$HOME'.
1263
1264For better control, use the options below.
1265
1266Fine tuning of the installation directories:
1267 --bindir=DIR user executables [EPREFIX/bin]
1268 --sbindir=DIR system admin executables [EPREFIX/sbin]
1269 --libexecdir=DIR program executables [EPREFIX/libexec]
1270 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1271 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1272 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Tim Edwards0b8fd2f2021-09-14 10:19:16 -04001273 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001274 --libdir=DIR object code libraries [EPREFIX/lib]
1275 --includedir=DIR C header files [PREFIX/include]
1276 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1277 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1278 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1279 --infodir=DIR info documentation [DATAROOTDIR/info]
1280 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1281 --mandir=DIR man documentation [DATAROOTDIR/man]
1282 --docdir=DIR documentation root [DATAROOTDIR/doc/open_pdks]
1283 --htmldir=DIR html documentation [DOCDIR]
1284 --dvidir=DIR dvi documentation [DOCDIR]
1285 --pdfdir=DIR pdf documentation [DOCDIR]
1286 --psdir=DIR ps documentation [DOCDIR]
1287_ACEOF
1288
1289 cat <<\_ACEOF
1290_ACEOF
1291fi
1292
1293if test -n "$ac_init_help"; then
1294 case $ac_init_help in
1295 short | recursive ) echo "Configuration of open_pdks 1.0:";;
1296 esac
1297 cat <<\_ACEOF
1298
Tim Edwardsccaea722020-12-24 10:59:42 -05001299Optional Features:
1300 --disable-option-checking ignore unrecognized --enable/--with options
1301 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1302 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tim Edwards8292c902020-12-24 16:25:25 -05001303 --enable-sky130-pdk=[/path/to/sky130/] --disable-sky130-pdk
1304 "location of the source files for the sky130 (pdks
Ahmed Ghazy32385482021-01-19 20:38:14 +02001305 with a pdk_url file can automatically download them
Tim Edwards8292c902020-12-24 16:25:25 -05001306 if the path is omitted)"
1307 --enable-klayout
Tim Edwards1168a8b2021-02-10 22:06:54 -05001308 Enable or disable klayout setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001309
1310
1311 --enable-magic
Tim Edwards1168a8b2021-02-10 22:06:54 -05001312 Enable or disable magic setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001313
1314
1315 --enable-netgen
Tim Edwards1168a8b2021-02-10 22:06:54 -05001316 Enable or disable netgen setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001317
1318
Tim Edwards367711e2021-01-27 10:35:12 -05001319 --enable-irsim
Tim Edwards1168a8b2021-02-10 22:06:54 -05001320 Enable or disable irsim setup [default=enabled]
Tim Edwards367711e2021-01-27 10:35:12 -05001321
1322
Tim Edwards8292c902020-12-24 16:25:25 -05001323 --enable-openlane
Tim Edwards1168a8b2021-02-10 22:06:54 -05001324 Enable or disable openlane setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001325
1326
1327 --enable-qflow
Tim Edwards1168a8b2021-02-10 22:06:54 -05001328 Enable or disable qflow setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001329
1330
Tim Edwards1168a8b2021-02-10 22:06:54 -05001331 --enable-xschem
1332 Enable or disable xschem setup [default=enabled]
1333
1334
1335 --enable-alpha-sky130[=path]
Tim Edwardscdfec5e2021-04-22 20:59:13 -04001336 Install sky130_ml_xx_hd. If path is omitted, the repository
1337 will be downloaded. [default=enabled]
Tim Edwards1168a8b2021-02-10 22:06:54 -05001338 --enable-xschem-sky130[=path]
Tim Edwardscdfec5e2021-04-22 20:59:13 -04001339 Install xschem_sky130. If path is omitted, the repository
1340 will be downloaded. [default=enabled]
1341 --enable-sram-sky130[=path]
1342 Install sky130_sram_macros. If path is omitted, the repository
Tim Edwards980e8f32021-04-28 10:37:56 -04001343 will be downloaded. [default=disabled]
Tim Edwardscdfec5e2021-04-22 20:59:13 -04001344 --enable-osu-t12-sky130[=path]
1345 Install sky130_osu_t12. If path is omitted, the repository
Tim Edwards980e8f32021-04-28 10:37:56 -04001346 will be downloaded. [default=disabled]
Tim Edwardscdfec5e2021-04-22 20:59:13 -04001347 --enable-osu-t15-sky130[=path]
1348 Install sky130_osu_t15. If path is omitted, the repository
Tim Edwards980e8f32021-04-28 10:37:56 -04001349 will be downloaded. [default=disabled]
Tim Edwardscdfec5e2021-04-22 20:59:13 -04001350 --enable-osu-t18-sky130[=path]
1351 Install sky130_osu_t18. If path is omitted, the repository
Tim Edwards980e8f32021-04-28 10:37:56 -04001352 will be downloaded. [default=disabled]
Tim Edwardsccaea722020-12-24 10:59:42 -05001353
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001354Optional Packages:
1355 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1356 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001357 --with-sky130-link-targets=none|source
1358 "make symbolic links to existing files
1359 [default=none]"
1360 --with-ef-style Use efabless style file system structure
1361 [default=no]
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001362
1363Some influential environment variables:
1364 PYTHON the Python interpreter
1365
1366Use these variables to override the choices made by `configure' or to help
1367it to find libraries and programs with nonstandard names/locations.
1368
1369Report bugs to <github.com/RTimothyEdwards/open_pdks>.
1370_ACEOF
1371ac_status=$?
1372fi
1373
1374if test "$ac_init_help" = "recursive"; then
1375 # If there are subdirs, report their specific --help.
1376 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1377 test -d "$ac_dir" ||
1378 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1379 continue
1380 ac_builddir=.
1381
1382case "$ac_dir" in
1383.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384*)
1385 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1386 # A ".." for each directory in $ac_dir_suffix.
1387 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1388 case $ac_top_builddir_sub in
1389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1391 esac ;;
1392esac
1393ac_abs_top_builddir=$ac_pwd
1394ac_abs_builddir=$ac_pwd$ac_dir_suffix
1395# for backward compatibility:
1396ac_top_builddir=$ac_top_build_prefix
1397
1398case $srcdir in
1399 .) # We are building in place.
1400 ac_srcdir=.
1401 ac_top_srcdir=$ac_top_builddir_sub
1402 ac_abs_top_srcdir=$ac_pwd ;;
1403 [\\/]* | ?:[\\/]* ) # Absolute name.
1404 ac_srcdir=$srcdir$ac_dir_suffix;
1405 ac_top_srcdir=$srcdir
1406 ac_abs_top_srcdir=$srcdir ;;
1407 *) # Relative name.
1408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1409 ac_top_srcdir=$ac_top_build_prefix$srcdir
1410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1411esac
1412ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1413
1414 cd "$ac_dir" || { ac_status=$?; continue; }
1415 # Check for guested configure.
1416 if test -f "$ac_srcdir/configure.gnu"; then
1417 echo &&
1418 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1419 elif test -f "$ac_srcdir/configure"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure" --help=recursive
1422 else
1423 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1424 fi || ac_status=$?
1425 cd "$ac_pwd" || { ac_status=$?; break; }
1426 done
1427fi
1428
1429test -n "$ac_init_help" && exit $ac_status
1430if $ac_init_version; then
1431 cat <<\_ACEOF
1432open_pdks configure 1.0
1433generated by GNU Autoconf 2.69
1434
1435Copyright (C) 2012 Free Software Foundation, Inc.
1436This configure script is free software; the Free Software Foundation
1437gives unlimited permission to copy, distribute and modify it.
1438_ACEOF
1439 exit
1440fi
1441
1442## ------------------------ ##
1443## Autoconf initialization. ##
1444## ------------------------ ##
1445cat >config.log <<_ACEOF
1446This file contains any messages produced by compilers while
1447running configure, to aid debugging if configure makes a mistake.
1448
1449It was created by open_pdks $as_me 1.0, which was
1450generated by GNU Autoconf 2.69. Invocation command line was
1451
1452 $ $0 $@
1453
1454_ACEOF
1455exec 5>>config.log
1456{
1457cat <<_ASUNAME
1458## --------- ##
1459## Platform. ##
1460## --------- ##
1461
1462hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1463uname -m = `(uname -m) 2>/dev/null || echo unknown`
1464uname -r = `(uname -r) 2>/dev/null || echo unknown`
1465uname -s = `(uname -s) 2>/dev/null || echo unknown`
1466uname -v = `(uname -v) 2>/dev/null || echo unknown`
1467
1468/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1469/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1470
1471/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1472/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1473/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1474/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1475/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1476/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1477/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1478
1479_ASUNAME
1480
1481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482for as_dir in $PATH
1483do
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 $as_echo "PATH: $as_dir"
1487 done
1488IFS=$as_save_IFS
1489
1490} >&5
1491
1492cat >&5 <<_ACEOF
1493
1494
1495## ----------- ##
1496## Core tests. ##
1497## ----------- ##
1498
1499_ACEOF
1500
1501
1502# Keep a trace of the command line.
1503# Strip out --no-create and --no-recursion so they do not pile up.
1504# Strip out --silent because we don't want to record it for future runs.
1505# Also quote any args containing shell meta-characters.
1506# Make two passes to allow for proper duplicate-argument suppression.
1507ac_configure_args=
1508ac_configure_args0=
1509ac_configure_args1=
1510ac_must_keep_next=false
1511for ac_pass in 1 2
1512do
1513 for ac_arg
1514 do
1515 case $ac_arg in
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1519 continue ;;
1520 *\'*)
1521 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 esac
1523 case $ac_pass in
1524 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1525 2)
1526 as_fn_append ac_configure_args1 " '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1529 else
1530 case $ac_arg in
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 esac
1538 ;;
1539 -* ) ac_must_keep_next=true ;;
1540 esac
1541 fi
1542 as_fn_append ac_configure_args " '$ac_arg'"
1543 ;;
1544 esac
1545 done
1546done
1547{ ac_configure_args0=; unset ac_configure_args0;}
1548{ ac_configure_args1=; unset ac_configure_args1;}
1549
1550# When interrupted or exit'd, cleanup temporary files, and complete
1551# config.log. We remove comments because anyway the quotes in there
1552# would cause problems or look ugly.
1553# WARNING: Use '\'' to represent an apostrophe within the trap.
1554# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1557 {
1558 echo
1559
1560 $as_echo "## ---------------- ##
1561## Cache variables. ##
1562## ---------------- ##"
1563 echo
1564 # The following way of writing the cache mishandles newlines in values,
1565(
1566 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1567 eval ac_val=\$$ac_var
1568 case $ac_val in #(
1569 *${as_nl}*)
1570 case $ac_var in #(
1571 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1572$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1573 esac
1574 case $ac_var in #(
1575 _ | IFS | as_nl) ;; #(
1576 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1577 *) { eval $ac_var=; unset $ac_var;} ;;
1578 esac ;;
1579 esac
1580 done
1581 (set) 2>&1 |
1582 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1583 *${as_nl}ac_space=\ *)
1584 sed -n \
1585 "s/'\''/'\''\\\\'\'''\''/g;
1586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1587 ;; #(
1588 *)
1589 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1590 ;;
1591 esac |
1592 sort
1593)
1594 echo
1595
1596 $as_echo "## ----------------- ##
1597## Output variables. ##
1598## ----------------- ##"
1599 echo
1600 for ac_var in $ac_subst_vars
1601 do
1602 eval ac_val=\$$ac_var
1603 case $ac_val in
1604 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605 esac
1606 $as_echo "$ac_var='\''$ac_val'\''"
1607 done | sort
1608 echo
1609
1610 if test -n "$ac_subst_files"; then
1611 $as_echo "## ------------------- ##
1612## File substitutions. ##
1613## ------------------- ##"
1614 echo
1615 for ac_var in $ac_subst_files
1616 do
1617 eval ac_val=\$$ac_var
1618 case $ac_val in
1619 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1620 esac
1621 $as_echo "$ac_var='\''$ac_val'\''"
1622 done | sort
1623 echo
1624 fi
1625
1626 if test -s confdefs.h; then
1627 $as_echo "## ----------- ##
1628## confdefs.h. ##
1629## ----------- ##"
1630 echo
1631 cat confdefs.h
1632 echo
1633 fi
1634 test "$ac_signal" != 0 &&
1635 $as_echo "$as_me: caught signal $ac_signal"
1636 $as_echo "$as_me: exit $exit_status"
1637 } >&5
1638 rm -f core *.core core.conftest.* &&
1639 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1640 exit $exit_status
1641' 0
1642for ac_signal in 1 2 13 15; do
1643 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1644done
1645ac_signal=0
1646
1647# confdefs.h avoids OS command line length limits that DEFS can exceed.
1648rm -f -r conftest* confdefs.h
1649
1650$as_echo "/* confdefs.h */" > confdefs.h
1651
1652# Predefined preprocessor variables.
1653
1654cat >>confdefs.h <<_ACEOF
1655#define PACKAGE_NAME "$PACKAGE_NAME"
1656_ACEOF
1657
1658cat >>confdefs.h <<_ACEOF
1659#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1660_ACEOF
1661
1662cat >>confdefs.h <<_ACEOF
1663#define PACKAGE_VERSION "$PACKAGE_VERSION"
1664_ACEOF
1665
1666cat >>confdefs.h <<_ACEOF
1667#define PACKAGE_STRING "$PACKAGE_STRING"
1668_ACEOF
1669
1670cat >>confdefs.h <<_ACEOF
1671#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1672_ACEOF
1673
1674cat >>confdefs.h <<_ACEOF
1675#define PACKAGE_URL "$PACKAGE_URL"
1676_ACEOF
1677
1678
1679# Let the site file select an alternate cache file if it wants to.
1680# Prefer an explicitly selected file to automatically selected ones.
1681ac_site_file1=NONE
1682ac_site_file2=NONE
1683if test -n "$CONFIG_SITE"; then
1684 # We do not want a PATH search for config.site.
1685 case $CONFIG_SITE in #((
1686 -*) ac_site_file1=./$CONFIG_SITE;;
1687 */*) ac_site_file1=$CONFIG_SITE;;
1688 *) ac_site_file1=./$CONFIG_SITE;;
1689 esac
1690elif test "x$prefix" != xNONE; then
1691 ac_site_file1=$prefix/share/config.site
1692 ac_site_file2=$prefix/etc/config.site
1693else
1694 ac_site_file1=$ac_default_prefix/share/config.site
1695 ac_site_file2=$ac_default_prefix/etc/config.site
1696fi
1697for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1698do
1699 test "x$ac_site_file" = xNONE && continue
1700 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1702$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1703 sed 's/^/| /' "$ac_site_file" >&5
1704 . "$ac_site_file" \
1705 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1707as_fn_error $? "failed to load site script $ac_site_file
1708See \`config.log' for more details" "$LINENO" 5; }
1709 fi
1710done
1711
1712if test -r "$cache_file"; then
1713 # Some versions of bash will fail to source /dev/null (special files
1714 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1715 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1717$as_echo "$as_me: loading cache $cache_file" >&6;}
1718 case $cache_file in
1719 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1720 *) . "./$cache_file";;
1721 esac
1722 fi
1723else
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1725$as_echo "$as_me: creating cache $cache_file" >&6;}
1726 >$cache_file
1727fi
1728
1729# Check that the precious variables saved in the cache have kept the same
1730# value.
1731ac_cache_corrupted=false
1732for ac_var in $ac_precious_vars; do
1733 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1734 eval ac_new_set=\$ac_env_${ac_var}_set
1735 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1736 eval ac_new_val=\$ac_env_${ac_var}_value
1737 case $ac_old_set,$ac_new_set in
1738 set,)
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1740$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,set)
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1744$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1745 ac_cache_corrupted=: ;;
1746 ,);;
1747 *)
1748 if test "x$ac_old_val" != "x$ac_new_val"; then
1749 # differences in whitespace do not lead to failure.
1750 ac_old_val_w=`echo x $ac_old_val`
1751 ac_new_val_w=`echo x $ac_new_val`
1752 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1754$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1755 ac_cache_corrupted=:
1756 else
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1758$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1759 eval $ac_var=\$ac_old_val
1760 fi
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1762$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1764$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1765 fi;;
1766 esac
1767 # Pass precious variables to config.status.
1768 if test "$ac_new_set" = set; then
1769 case $ac_new_val in
1770 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1771 *) ac_arg=$ac_var=$ac_new_val ;;
1772 esac
1773 case " $ac_configure_args " in
1774 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1775 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1776 esac
1777 fi
1778done
1779if $ac_cache_corrupted; then
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1783$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1784 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1785fi
1786## -------------------- ##
1787## Main body of script. ##
1788## -------------------- ##
1789
1790ac_ext=c
1791ac_cpp='$CPP $CPPFLAGS'
1792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795
1796
1797
Tim Edwardsd09355e2021-08-23 16:25:31 -04001798# AC_PREFIX_DEFAULT(/usr)
Tim Edwards053cff32021-03-13 17:17:36 -05001799
Tim Edwards8a4b1602021-08-20 14:05:53 -04001800
Tim Edwardsccaea722020-12-24 10:59:42 -05001801## REQUIRES: https://www.gnu.org/software/autoconf-archive/ax_python_module.html#ax_python_module
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001802
1803
1804
1805
1806
1807
1808 if test -n "$PYTHON"; then
1809 # If the user set $PYTHON, use it and don't search something else.
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
1811$as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
1812 prog="import sys
1813# split strings by '.' and convert to numeric. Append some zeros
1814# because we need at least 4 digits for the hex conversion.
1815# map returns an iterator in Python 3.0 and a list in 2.x
1816minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
1817minverhex = 0
1818# xrange is not present in Python 3.0 and range returns an iterator
1819for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
1820sys.exit(sys.hexversion < minverhex)"
1821 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
1822 ($PYTHON -c "$prog") >&5 2>&5
1823 ac_status=$?
1824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1825 (exit $ac_status); }; then :
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1827$as_echo "yes" >&6; }
1828else
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1830$as_echo "no" >&6; }
1831 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
1832fi
1833 am_display_PYTHON=$PYTHON
1834 else
1835 # Otherwise, try each interpreter until we find one that satisfies
1836 # VERSION.
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
1838$as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
1839if ${am_cv_pathless_PYTHON+:} false; then :
1840 $as_echo_n "(cached) " >&6
1841else
1842
Tim Edwards0b8fd2f2021-09-14 10:19:16 -04001843 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001844 test "$am_cv_pathless_PYTHON" = none && break
1845 prog="import sys
1846# split strings by '.' and convert to numeric. Append some zeros
1847# because we need at least 4 digits for the hex conversion.
1848# map returns an iterator in Python 3.0 and a list in 2.x
1849minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
1850minverhex = 0
1851# xrange is not present in Python 3.0 and range returns an iterator
1852for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
1853sys.exit(sys.hexversion < minverhex)"
1854 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
1855 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
1856 ac_status=$?
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }; then :
1859 break
1860fi
1861 done
1862fi
1863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
1864$as_echo "$am_cv_pathless_PYTHON" >&6; }
1865 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
1866 if test "$am_cv_pathless_PYTHON" = none; then
1867 PYTHON=:
1868 else
1869 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
1870set dummy $am_cv_pathless_PYTHON; ac_word=$2
1871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1872$as_echo_n "checking for $ac_word... " >&6; }
1873if ${ac_cv_path_PYTHON+:} false; then :
1874 $as_echo_n "(cached) " >&6
1875else
1876 case $PYTHON in
1877 [\\/]* | ?:[\\/]*)
1878 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1879 ;;
1880 *)
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882for as_dir in $PATH
1883do
1884 IFS=$as_save_IFS
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
1889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 break 2
1891 fi
1892done
1893 done
1894IFS=$as_save_IFS
1895
1896 ;;
1897esac
1898fi
1899PYTHON=$ac_cv_path_PYTHON
1900if test -n "$PYTHON"; then
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
1902$as_echo "$PYTHON" >&6; }
1903else
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1905$as_echo "no" >&6; }
1906fi
1907
1908
1909 fi
1910 am_display_PYTHON=$am_cv_pathless_PYTHON
1911 fi
1912
1913
1914 if test "$PYTHON" = :; then
1915 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
1916 else
1917
1918
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
1920$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
1921if ${am_cv_python_version+:} false; then :
1922 $as_echo_n "(cached) " >&6
1923else
Tim Edwards8a4b1602021-08-20 14:05:53 -04001924 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001925fi
1926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
1927$as_echo "$am_cv_python_version" >&6; }
1928 PYTHON_VERSION=$am_cv_python_version
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001929
Tim Edwards0b8fd2f2021-09-14 10:19:16 -04001930
1931
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001932 PYTHON_PREFIX='${prefix}'
1933
1934 PYTHON_EXEC_PREFIX='${exec_prefix}'
1935
1936
1937
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
1939$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
1940if ${am_cv_python_platform+:} false; then :
1941 $as_echo_n "(cached) " >&6
1942else
1943 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
1944fi
1945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
1946$as_echo "$am_cv_python_platform" >&6; }
1947 PYTHON_PLATFORM=$am_cv_python_platform
1948
1949
1950 # Just factor out some code duplication.
1951 am_python_setup_sysconfig="\
1952import sys
1953# Prefer sysconfig over distutils.sysconfig, for better compatibility
1954# with python 3.x. See automake bug#10227.
1955try:
1956 import sysconfig
1957except ImportError:
1958 can_use_sysconfig = 0
1959else:
1960 can_use_sysconfig = 1
1961# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
1962# <https://github.com/pypa/virtualenv/issues/118>
1963try:
1964 from platform import python_implementation
1965 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
1966 can_use_sysconfig = 0
1967except ImportError:
1968 pass"
1969
1970
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
1972$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
1973if ${am_cv_python_pythondir+:} false; then :
1974 $as_echo_n "(cached) " >&6
1975else
1976 if test "x$prefix" = xNONE
1977 then
1978 am_py_prefix=$ac_default_prefix
1979 else
1980 am_py_prefix=$prefix
1981 fi
1982 am_cv_python_pythondir=`$PYTHON -c "
1983$am_python_setup_sysconfig
1984if can_use_sysconfig:
1985 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
1986else:
1987 from distutils import sysconfig
1988 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
1989sys.stdout.write(sitedir)"`
1990 case $am_cv_python_pythondir in
1991 $am_py_prefix*)
1992 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
1993 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
1994 ;;
1995 *)
1996 case $am_py_prefix in
1997 /usr|/System*) ;;
1998 *)
1999 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
2000 ;;
2001 esac
2002 ;;
2003 esac
2004
2005fi
2006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
2007$as_echo "$am_cv_python_pythondir" >&6; }
2008 pythondir=$am_cv_python_pythondir
2009
2010
2011
2012 pkgpythondir=\${pythondir}/$PACKAGE
2013
2014
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
2016$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
2017if ${am_cv_python_pyexecdir+:} false; then :
2018 $as_echo_n "(cached) " >&6
2019else
2020 if test "x$exec_prefix" = xNONE
2021 then
2022 am_py_exec_prefix=$am_py_prefix
2023 else
2024 am_py_exec_prefix=$exec_prefix
2025 fi
2026 am_cv_python_pyexecdir=`$PYTHON -c "
2027$am_python_setup_sysconfig
2028if can_use_sysconfig:
2029 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
2030else:
2031 from distutils import sysconfig
2032 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
2033sys.stdout.write(sitedir)"`
2034 case $am_cv_python_pyexecdir in
2035 $am_py_exec_prefix*)
2036 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
2037 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
2038 ;;
2039 *)
2040 case $am_py_exec_prefix in
2041 /usr|/System*) ;;
2042 *)
2043 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
2044 ;;
2045 esac
2046 ;;
2047 esac
2048
2049fi
2050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
2051$as_echo "$am_cv_python_pyexecdir" >&6; }
2052 pyexecdir=$am_cv_python_pyexecdir
2053
2054
2055
2056 pkgpyexecdir=\${pyexecdir}/$PACKAGE
2057
2058
2059
2060 fi
2061
2062
2063
2064 if test -z $PYTHON;
2065 then
Tim Edwards238499f2021-05-17 16:34:13 -04002066 if test -z "";
2067 then
2068 PYTHON="python3"
2069 else
2070 PYTHON=""
2071 fi
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002072 fi
2073 PYTHON_NAME=`basename $PYTHON`
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: distutils" >&5
2075$as_echo_n "checking $PYTHON_NAME module: distutils... " >&6; }
Tim Edwards238499f2021-05-17 16:34:13 -04002076 $PYTHON -c "import distutils" 2>/dev/null
2077 if test $? -eq 0;
2078 then
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002080$as_echo "yes" >&6; }
Tim Edwards238499f2021-05-17 16:34:13 -04002081 eval HAVE_PYMOD_DISTUTILS=yes
2082 else
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002084$as_echo "no" >&6; }
Tim Edwards238499f2021-05-17 16:34:13 -04002085 eval HAVE_PYMOD_DISTUTILS=no
2086 #
2087 if test -n ""
2088 then
2089 as_fn_error $? "failed to find required module distutils" "$LINENO" 5
2090 exit 1
2091 fi
2092 fi
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002093
2094
Tim Edwards665c3fd2021-05-02 20:20:27 -04002095# Check for Mac OS X gsed vs. sed
2096
2097
2098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2099$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2100if ${ac_cv_path_SED+:} false; then :
2101 $as_echo_n "(cached) " >&6
2102else
2103 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2104 for ac_i in 1 2 3 4 5 6 7; do
2105 ac_script="$ac_script$as_nl$ac_script"
2106 done
2107 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2108 { ac_script=; unset ac_script;}
2109 if test -z "$SED"; then
2110 ac_path_SED_found=false
2111 # Loop through the user's path and test for each of PROGNAME-LIST
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113for as_dir in $PATH
2114do
2115 IFS=$as_save_IFS
2116 test -z "$as_dir" && as_dir=.
2117 for ac_prog in sed gsed; do
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2120 as_fn_executable_p "$ac_path_SED" || continue
2121# Check for GNU ac_path_SED and select it if it is found.
2122 # Check for GNU $ac_path_SED
2123case `"$ac_path_SED" --version 2>&1` in
2124*GNU*)
2125 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2126*)
2127 ac_count=0
2128 $as_echo_n 0123456789 >"conftest.in"
2129 while :
2130 do
2131 cat "conftest.in" "conftest.in" >"conftest.tmp"
2132 mv "conftest.tmp" "conftest.in"
2133 cp "conftest.in" "conftest.nl"
2134 $as_echo '' >> "conftest.nl"
2135 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2137 as_fn_arith $ac_count + 1 && ac_count=$as_val
2138 if test $ac_count -gt ${ac_path_SED_max-0}; then
2139 # Best one so far, save it but keep looking for a better one
2140 ac_cv_path_SED="$ac_path_SED"
2141 ac_path_SED_max=$ac_count
2142 fi
2143 # 10*(2^10) chars as input seems more than enough
2144 test $ac_count -gt 10 && break
2145 done
2146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2147esac
2148
2149 $ac_path_SED_found && break 3
2150 done
2151 done
2152 done
2153IFS=$as_save_IFS
2154 if test -z "$ac_cv_path_SED"; then
2155 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2156 fi
2157else
2158 ac_cv_path_SED=$SED
2159fi
2160
2161fi
2162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2163$as_echo "$ac_cv_path_SED" >&6; }
2164 SED="$ac_cv_path_SED"
2165 rm -f conftest.sed
2166
2167
2168
Tim Edwards66e53e52021-01-24 21:21:36 -05002169realpath() {
2170 # Cross-platform, handles ~
2171 python3 -c 'import os,sys;print(os.path.realpath(os.path.expanduser(sys.argv[1])))' $1
2172}
2173
Tim Edwards3c02c082021-11-26 13:48:33 -05002174ENABLED_TECHS=
2175
Tim Edwards66e53e52021-01-24 21:21:36 -05002176# detect PDKs based on directories that include Makefile.in files
2177
2178
2179# define tools
2180# define tools to install setup files for. This does not imply that the tools are
2181# available on the system; just that open_pdks will install the setup files for them.
Tim Edwards66e53e52021-01-24 21:21:36 -05002182
2183
Tim Edwards66e53e52021-01-24 21:21:36 -05002184# check for the source and install paths for each PDK.
2185
2186
2187{ $as_echo "$as_me:${as_lineno-$LINENO}: Found technology directories: sky130" >&5
2188$as_echo "$as_me: Found technology directories: sky130" >&6;}
2189
2190
2191
2192 # --enable-pdk-[pdk]=/path/to/pdk
2193
Tim Edwards1168a8b2021-02-10 22:06:54 -05002194 echo "Checking technology sky130..."
Tim Edwards66e53e52021-01-24 21:21:36 -05002195
2196
2197 SKY130_SOURCE_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002198 SKY130_LINK_TARGETS="none"
Tim Edwards7e0a6442021-02-11 15:37:42 -05002199 SKY130_AUTO="0"
Tim Edwards66e53e52021-01-24 21:21:36 -05002200
2201 # Check whether --enable-sky130-sky130 was given.
2202if test "${enable_sky130_pdk+set}" = set; then :
2203 enableval=$enable_sky130_pdk;
2204 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002205 export SKY130_SOURCE_PATH=../sources/sky130-pdk
2206 SKY130_AUTO="1"
Tim Edwards3c02c082021-11-26 13:48:33 -05002207 ENABLED_TECHS="$ENABLED_TECHS sky130"
Tim Edwards66e53e52021-01-24 21:21:36 -05002208 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2209 echo "Disabling sky130..."
2210 else
2211 SKY130_SOURCE_PATH=$enableval
Tim Edwards3c02c082021-11-26 13:48:33 -05002212 ENABLED_TECHS="$ENABLED_TECHS sky130"
Tim Edwards66e53e52021-01-24 21:21:36 -05002213 fi
2214
Tim Edwards66e53e52021-01-24 21:21:36 -05002215fi
2216
Tim Edwards66e53e52021-01-24 21:21:36 -05002217
2218 if [ "$SKY130_SOURCE_PATH" != "" ]; then
2219 SKY130_SOURCE_PATH=`realpath $SKY130_SOURCE_PATH`
2220 SKY130_BASENAME=`basename $SKY130_SOURCE_PATH`
2221 if [ "$SKY130_BASENAME" = "libraries" ]; then
2222 SKY130_SOURCE_PATH=`dirname $SKY130_SOURCE_PATH`
2223 fi
Tim Edwards6ee11532021-02-11 12:29:33 -05002224 # Basic check that the PDK path exists, unless depending on Makefile
2225 # to download it automatically.
Tim Edwards7e0a6442021-02-11 15:37:42 -05002226 if [ "$SKY130_AUTO" = "0" ]; then
Tim Edwards6ee11532021-02-11 12:29:33 -05002227 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&5
Tim Edwards66e53e52021-01-24 21:21:36 -05002228$as_echo "$as_me: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&6;}
Tim Edwards6ee11532021-02-11 12:29:33 -05002229 as_ac_File=`$as_echo "ac_cv_file_$SKY130_SOURCE_PATH" | $as_tr_sh`
Tim Edwards66e53e52021-01-24 21:21:36 -05002230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SKY130_SOURCE_PATH" >&5
2231$as_echo_n "checking for $SKY130_SOURCE_PATH... " >&6; }
2232if eval \${$as_ac_File+:} false; then :
2233 $as_echo_n "(cached) " >&6
2234else
2235 test "$cross_compiling" = yes &&
2236 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
2237if test -r "$SKY130_SOURCE_PATH"; then
2238 eval "$as_ac_File=yes"
2239else
2240 eval "$as_ac_File=no"
2241fi
2242fi
2243eval ac_res=\$$as_ac_File
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245$as_echo "$ac_res" >&6; }
2246if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
2247
Tim Edwards6ee11532021-02-11 12:29:33 -05002248 { $as_echo "$as_me:${as_lineno-$LINENO}: 'sky130' source path found at $SKY130_SOURCE_PATH" >&5
Tim Edwards66e53e52021-01-24 21:21:36 -05002249$as_echo "$as_me: 'sky130' source path found at $SKY130_SOURCE_PATH" >&6;}
2250
2251else
2252
Tim Edwards6ee11532021-02-11 12:29:33 -05002253 as_fn_error $? "Specified path for 'sky130' at $SKY130_SOURCE_PATH not found" "$LINENO" 5
Tim Edwards66e53e52021-01-24 21:21:36 -05002254
2255fi
2256
Tim Edwards6ee11532021-02-11 12:29:33 -05002257 else
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: PDK 'sky130' will be downloaded automatically during make." >&5
2259$as_echo "$as_me: PDK 'sky130' will be downloaded automatically during make." >&6;}
2260 fi
Tim Edwards66e53e52021-01-24 21:21:36 -05002261
Tim Edwards66e53e52021-01-24 21:21:36 -05002262 # --with-pdk-link-targets=PDK_LINK_TARGETS
2263
2264# Check whether --with-sky130-link-targets was given.
2265if test "${with_sky130_link_targets+set}" = set; then :
2266 withval=$with_sky130_link_targets; SKY130_LINK_TARGETS=$with_sky130_link_targets
2267
2268fi
2269
2270
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: Link targets set to $SKY130_LINK_TARGETS" >&5
2272$as_echo "$as_me: Link targets set to $SKY130_LINK_TARGETS" >&6;}
2273 fi
2274
2275
2276
2277
2278
2279
Tim Edwards3c02c082021-11-26 13:48:33 -05002280# Export the list of known technologies to the Makefile
2281ALL_TECHS="sky130"
2282
2283
Tim Edwards66e53e52021-01-24 21:21:36 -05002284# Set variables for tool setups
2285
2286
Tim Edwards1168a8b2021-02-10 22:06:54 -05002287{ $as_echo "$as_me:${as_lineno-$LINENO}: Found tools: klayout magic netgen irsim openlane qflow xschem" >&5
2288$as_echo "$as_me: Found tools: klayout magic netgen irsim openlane qflow xschem" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002289
2290
2291
2292
2293
2294 KLAYOUT_DISABLED=0
2295 # Check whether --enable-klayout was given.
2296if test "${enable_klayout+set}" = set; then :
2297 enableval=$enable_klayout;
2298 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2299 KLAYOUT_DISABLED=1
2300 fi
2301
2302
2303fi
2304
2305
2306
2307
2308
2309 MAGIC_DISABLED=0
2310 # Check whether --enable-magic was given.
2311if test "${enable_magic+set}" = set; then :
2312 enableval=$enable_magic;
2313 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2314 MAGIC_DISABLED=1
2315 fi
2316
2317
2318fi
2319
2320
2321
2322
2323
2324 NETGEN_DISABLED=0
2325 # Check whether --enable-netgen was given.
2326if test "${enable_netgen+set}" = set; then :
2327 enableval=$enable_netgen;
2328 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2329 NETGEN_DISABLED=1
2330 fi
2331
2332
2333fi
2334
2335
2336
2337
2338
Tim Edwards367711e2021-01-27 10:35:12 -05002339 IRSIM_DISABLED=0
2340 # Check whether --enable-irsim was given.
2341if test "${enable_irsim+set}" = set; then :
2342 enableval=$enable_irsim;
2343 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2344 IRSIM_DISABLED=1
2345 fi
2346
2347
2348fi
2349
2350
2351
2352
2353
Tim Edwards66e53e52021-01-24 21:21:36 -05002354 OPENLANE_DISABLED=0
2355 # Check whether --enable-openlane was given.
2356if test "${enable_openlane+set}" = set; then :
2357 enableval=$enable_openlane;
2358 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2359 OPENLANE_DISABLED=1
2360 fi
2361
2362
2363fi
2364
2365
2366
2367
2368
2369 QFLOW_DISABLED=0
2370 # Check whether --enable-qflow was given.
2371if test "${enable_qflow+set}" = set; then :
2372 enableval=$enable_qflow;
2373 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2374 QFLOW_DISABLED=1
2375 fi
2376
2377
2378fi
2379
2380
2381
2382
2383
Tim Edwards1168a8b2021-02-10 22:06:54 -05002384 XSCHEM_DISABLED=0
2385 # Check whether --enable-xschem was given.
2386if test "${enable_xschem+set}" = set; then :
2387 enableval=$enable_xschem;
2388 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2389 XSCHEM_DISABLED=1
2390 fi
2391
2392
2393fi
2394
2395
2396
2397
2398
Tim Edwards66e53e52021-01-24 21:21:36 -05002399# Magic
2400# Extract the first word of "magic", so it can be a program name with args.
2401set dummy magic; ac_word=$2
2402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2403$as_echo_n "checking for $ac_word... " >&6; }
2404if ${ac_cv_path_MAGIC+:} false; then :
2405 $as_echo_n "(cached) " >&6
2406else
2407 case $MAGIC in
2408 [\\/]* | ?:[\\/]*)
2409 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
2410 ;;
2411 *)
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2419 ac_cv_path_MAGIC="$as_dir/$ac_word$ac_exec_ext"
2420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 break 2
2422 fi
2423done
2424 done
2425IFS=$as_save_IFS
2426
2427 ;;
2428esac
2429fi
2430MAGIC=$ac_cv_path_MAGIC
2431if test -n "$MAGIC"; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC" >&5
2433$as_echo "$MAGIC" >&6; }
2434else
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2436$as_echo "no" >&6; }
2437fi
2438
2439
2440if test -z "$MAGIC"; then
2441 as_fn_error $? "You need 'magic' to generate the needed various cell views." "$LINENO" 5
2442fi
2443# Extract the first word of "patch", so it can be a program name with args.
2444set dummy patch; ac_word=$2
2445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2446$as_echo_n "checking for $ac_word... " >&6; }
2447if ${ac_cv_path_PATCH+:} false; then :
2448 $as_echo_n "(cached) " >&6
2449else
2450 case $PATCH in
2451 [\\/]* | ?:[\\/]*)
2452 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
2453 ;;
2454 *)
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2462 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
2463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2465 fi
2466done
2467 done
2468IFS=$as_save_IFS
2469
2470 ;;
2471esac
2472fi
2473PATCH=$ac_cv_path_PATCH
2474if test -n "$PATCH"; then
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
2476$as_echo "$PATCH" >&6; }
2477else
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2479$as_echo "no" >&6; }
2480fi
2481
2482
2483if test -z "$PATCH"; then
2484 as_fn_error $? "You need 'patch' to apply patches." "$LINENO" 5
2485fi
2486
2487# Other installations (libraries or tools if applicable)
Tim Edwards66e53e52021-01-24 21:21:36 -05002488
2489
Tim Edwardscdfec5e2021-04-22 20:59:13 -04002490# Optional installations (like the above, but disabled by default)
Tim Edwardscfe970c2021-02-26 14:35:51 -05002491
2492
2493
2494
2495
2496
2497
2498
2499 # echo target targetvar flag location
2500
Tim Edwards66e53e52021-01-24 21:21:36 -05002501 SKY130_ML_XX_HD_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002502
Tim Edwards1168a8b2021-02-10 22:06:54 -05002503 # Check whether --enable-alpha-sky130 was given.
2504if test "${enable_alpha_sky130+set}" = set; then :
2505 enableval=$enable_alpha_sky130;
Tim Edwards66e53e52021-01-24 21:21:36 -05002506 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002507 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&5
2508$as_echo "$as_me: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&6;}
Tim Edwards6ee11532021-02-11 12:29:33 -05002509 export SKY130_ML_XX_HD_PATH=../sources/sky130_ml_xx_hd
Tim Edwards66e53e52021-01-24 21:21:36 -05002510 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002511 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_ml_xx_hd'" >&5
2512$as_echo "$as_me: Disabling package 'sky130_ml_xx_hd'" >&6;}
2513 export SKY130_ML_XX_HD_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002514 else
2515 SKY130_ML_XX_HD_PATH=$enableval
Tim Edwards7e0a6442021-02-11 15:37:42 -05002516 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_ml_xx_hd' at $SKY130_ML_XX_HD_PATH" >&5
2517$as_echo "$as_me: Enabling package 'sky130_ml_xx_hd' at $SKY130_ML_XX_HD_PATH" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002518 fi
2519 SKY130_ML_XX_HD_PATH=`realpath $SKY130_ML_XX_HD_PATH`
2520
Tim Edwards7e0a6442021-02-11 15:37:42 -05002521else
2522
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&5
2524$as_echo "$as_me: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&6;}
2525 SKY130_ML_XX_HD_PATH=../sources/sky130_ml_xx_hd
2526
2527
Tim Edwards66e53e52021-01-24 21:21:36 -05002528fi
2529
2530
2531
2532
2533
2534
2535
Tim Edwards66e53e52021-01-24 21:21:36 -05002536
2537
2538
2539
2540
Tim Edwards6ee11532021-02-11 12:29:33 -05002541 # echo target targetvar flag location
Tim Edwards66e53e52021-01-24 21:21:36 -05002542
Tim Edwards1168a8b2021-02-10 22:06:54 -05002543 XSCHEM_SKY130_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002544
Tim Edwards1168a8b2021-02-10 22:06:54 -05002545 # Check whether --enable-xschem-sky130 was given.
2546if test "${enable_xschem_sky130+set}" = set; then :
2547 enableval=$enable_xschem_sky130;
Tim Edwards66e53e52021-01-24 21:21:36 -05002548 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002549 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'xschem_sky130' will be installed automatically during make." >&5
2550$as_echo "$as_me: Package 'xschem_sky130' will be installed automatically during make." >&6;}
Tim Edwards6ee11532021-02-11 12:29:33 -05002551 export XSCHEM_SKY130_PATH=../sources/xschem_sky130
Tim Edwards66e53e52021-01-24 21:21:36 -05002552 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002553 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'xschem_sky130'" >&5
2554$as_echo "$as_me: Disabling package 'xschem_sky130'" >&6;}
2555 export XSCHEM_SKY130_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002556 else
Tim Edwards1168a8b2021-02-10 22:06:54 -05002557 XSCHEM_SKY130_PATH=$enableval
Tim Edwards7e0a6442021-02-11 15:37:42 -05002558 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'xschem_sky130' at $XSCHEM_SKY130_PATH" >&5
2559$as_echo "$as_me: Enabling package 'xschem_sky130' at $XSCHEM_SKY130_PATH" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002560 fi
Tim Edwards1168a8b2021-02-10 22:06:54 -05002561 XSCHEM_SKY130_PATH=`realpath $XSCHEM_SKY130_PATH`
Tim Edwards66e53e52021-01-24 21:21:36 -05002562
Tim Edwards7e0a6442021-02-11 15:37:42 -05002563else
2564
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'xschem_sky130' will be installed automatically during make." >&5
2566$as_echo "$as_me: Package 'xschem_sky130' will be installed automatically during make." >&6;}
2567 XSCHEM_SKY130_PATH=../sources/xschem_sky130
2568
2569
Tim Edwards66e53e52021-01-24 21:21:36 -05002570fi
2571
2572
2573
2574
2575
Tim Edwards66e53e52021-01-24 21:21:36 -05002576
2577
2578
2579
Tim Edwardscdfec5e2021-04-22 20:59:13 -04002580
2581
2582
2583
2584 # echo target targetvar flag location
2585
2586 SKY130_SRAM_MACROS_PATH=""
2587
2588 # Check whether --enable-sram-sky130 was given.
2589if test "${enable_sram_sky130+set}" = set; then :
2590 enableval=$enable_sram_sky130;
2591 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_sram_macros' will be installed automatically during make." >&5
2593$as_echo "$as_me: Package 'sky130_sram_macros' will be installed automatically during make." >&6;}
2594 export SKY130_SRAM_MACROS_PATH=../sources/sky130_sram_macros
2595 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_sram_macros'" >&5
2597$as_echo "$as_me: Disabling package 'sky130_sram_macros'" >&6;}
2598 export SKY130_SRAM_MACROS_PATH=""
2599 else
2600 SKY130_SRAM_MACROS_PATH=$enableval
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_sram_macros' at $SKY130_SRAM_MACROS_PATH" >&5
2602$as_echo "$as_me: Enabling package 'sky130_sram_macros' at $SKY130_SRAM_MACROS_PATH" >&6;}
2603 fi
2604 SKY130_SRAM_MACROS_PATH=`realpath $SKY130_SRAM_MACROS_PATH`
2605
2606else
2607
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_sram_macros' will not be installed." >&5
2609$as_echo "$as_me: Package 'sky130_sram_macros' will not be installed." >&6;}
2610
2611
2612fi
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625 # echo target targetvar flag location
2626
Tim Edwardscdfec5e2021-04-22 20:59:13 -04002627 SKY130_OSU_T12_PATH=""
2628
2629 # Check whether --enable-osu-t12-sky130 was given.
2630if test "${enable_osu_t12_sky130+set}" = set; then :
2631 enableval=$enable_osu_t12_sky130;
2632 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t12' will be installed automatically during make." >&5
2634$as_echo "$as_me: Package 'sky130_osu_t12' will be installed automatically during make." >&6;}
2635 export SKY130_OSU_T12_PATH=../sources/sky130_osu_t12
2636 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_osu_t12'" >&5
2638$as_echo "$as_me: Disabling package 'sky130_osu_t12'" >&6;}
2639 export SKY130_OSU_T12_PATH=""
2640 else
2641 SKY130_OSU_T12_PATH=$enableval
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_osu_t12' at $SKY130_OSU_T12_PATH" >&5
2643$as_echo "$as_me: Enabling package 'sky130_osu_t12' at $SKY130_OSU_T12_PATH" >&6;}
2644 fi
2645 SKY130_OSU_T12_PATH=`realpath $SKY130_OSU_T12_PATH`
2646
2647else
2648
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t12' will not be installed." >&5
2650$as_echo "$as_me: Package 'sky130_osu_t12' will not be installed." >&6;}
2651
2652
2653fi
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666 # echo target targetvar flag location
2667
2668 SKY130_OSU_T15_PATH=""
2669
2670 # Check whether --enable-osu-t15-sky130 was given.
2671if test "${enable_osu_t15_sky130+set}" = set; then :
2672 enableval=$enable_osu_t15_sky130;
2673 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t15' will be installed automatically during make." >&5
2675$as_echo "$as_me: Package 'sky130_osu_t15' will be installed automatically during make." >&6;}
2676 export SKY130_OSU_T15_PATH=../sources/sky130_osu_t15
2677 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_osu_t15'" >&5
2679$as_echo "$as_me: Disabling package 'sky130_osu_t15'" >&6;}
2680 export SKY130_OSU_T15_PATH=""
2681 else
2682 SKY130_OSU_T15_PATH=$enableval
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_osu_t15' at $SKY130_OSU_T15_PATH" >&5
2684$as_echo "$as_me: Enabling package 'sky130_osu_t15' at $SKY130_OSU_T15_PATH" >&6;}
2685 fi
2686 SKY130_OSU_T15_PATH=`realpath $SKY130_OSU_T15_PATH`
2687
2688else
2689
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t15' will not be installed." >&5
2691$as_echo "$as_me: Package 'sky130_osu_t15' will not be installed." >&6;}
2692
2693
2694fi
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707 # echo target targetvar flag location
2708
2709 SKY130_OSU_T18_PATH=""
2710
2711 # Check whether --enable-osu-t18-sky130 was given.
2712if test "${enable_osu_t18_sky130+set}" = set; then :
2713 enableval=$enable_osu_t18_sky130;
2714 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t18' will be installed automatically during make." >&5
2716$as_echo "$as_me: Package 'sky130_osu_t18' will be installed automatically during make." >&6;}
2717 export SKY130_OSU_T18_PATH=../sources/sky130_osu_t18
2718 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_osu_t18'" >&5
2720$as_echo "$as_me: Disabling package 'sky130_osu_t18'" >&6;}
2721 export SKY130_OSU_T18_PATH=""
2722 else
2723 SKY130_OSU_T18_PATH=$enableval
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_osu_t18' at $SKY130_OSU_T18_PATH" >&5
2725$as_echo "$as_me: Enabling package 'sky130_osu_t18' at $SKY130_OSU_T18_PATH" >&6;}
2726 fi
2727 SKY130_OSU_T18_PATH=`realpath $SKY130_OSU_T18_PATH`
2728
2729else
2730
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t18' will not be installed." >&5
2732$as_echo "$as_me: Package 'sky130_osu_t18' will not be installed." >&6;}
2733
2734
2735fi
2736
2737
2738
2739
2740
2741
2742
2743
2744
Tim Edwards1168a8b2021-02-10 22:06:54 -05002745{ $as_echo "$as_me:${as_lineno-$LINENO}: Tools enabled for PDK setup installation: klayout magic netgen irsim openlane qflow xschem" >&5
2746$as_echo "$as_me: Tools enabled for PDK setup installation: klayout magic netgen irsim openlane qflow xschem" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002747
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002748# Check for "--with-ef-style"
2749EF_STYLE=0
2750
2751# Check whether --with-ef-style was given.
2752if test "${with_ef_style+set}" = set; then :
2753 withval=$with_ef_style;
Tim Edwards8292c902020-12-24 16:25:25 -05002754 pdks_ef_style=$withval
2755 if test "$withval" == "yes" -o "$withval" == "YES"; then
2756 EF_STYLE=1
2757 fi
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002758
2759fi
2760
2761
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002762
Tim Edwards3c02c082021-11-26 13:48:33 -05002763# Export the list of enabled technologies to the Makefile
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002764
Tim Edwards3c02c082021-11-26 13:48:33 -05002765
2766MAKEFILES=$(find -L .. -name "Makefile.in" | sed 's/\(.*\)\.in/\1/g')
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002767ac_config_files="$ac_config_files $MAKEFILES"
2768
2769
2770cat >confcache <<\_ACEOF
2771# This file is a shell script that caches the results of configure
2772# tests run on this system so they can be shared between configure
2773# scripts and configure runs, see configure's option --config-cache.
2774# It is not useful on other systems. If it contains results you don't
2775# want to keep, you may remove or edit it.
2776#
2777# config.status only pays attention to the cache file if you give it
2778# the --recheck option to rerun configure.
2779#
2780# `ac_cv_env_foo' variables (set or unset) will be overridden when
2781# loading this file, other *unset* `ac_cv_foo' will be assigned the
2782# following values.
2783
2784_ACEOF
2785
2786# The following way of writing the cache mishandles newlines in values,
2787# but we know of no workaround that is simple, portable, and efficient.
2788# So, we kill variables containing newlines.
2789# Ultrix sh set writes to stderr and can't be redirected directly,
2790# and sets the high bit in the cache file unless we assign to the vars.
2791(
2792 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2793 eval ac_val=\$$ac_var
2794 case $ac_val in #(
2795 *${as_nl}*)
2796 case $ac_var in #(
2797 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2798$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2799 esac
2800 case $ac_var in #(
2801 _ | IFS | as_nl) ;; #(
2802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2803 *) { eval $ac_var=; unset $ac_var;} ;;
2804 esac ;;
2805 esac
2806 done
2807
2808 (set) 2>&1 |
2809 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2810 *${as_nl}ac_space=\ *)
2811 # `set' does not quote correctly, so add quotes: double-quote
2812 # substitution turns \\\\ into \\, and sed turns \\ into \.
2813 sed -n \
2814 "s/'/'\\\\''/g;
2815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2816 ;; #(
2817 *)
2818 # `set' quotes correctly as required by POSIX, so do not add quotes.
2819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2820 ;;
2821 esac |
2822 sort
2823) |
2824 sed '
2825 /^ac_cv_env_/b end
2826 t clear
2827 :clear
2828 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2829 t end
2830 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2831 :end' >>confcache
2832if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2833 if test -w "$cache_file"; then
2834 if test "x$cache_file" != "x/dev/null"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2836$as_echo "$as_me: updating cache $cache_file" >&6;}
2837 if test ! -f "$cache_file" || test -h "$cache_file"; then
2838 cat confcache >"$cache_file"
2839 else
2840 case $cache_file in #(
2841 */* | ?:*)
2842 mv -f confcache "$cache_file"$$ &&
2843 mv -f "$cache_file"$$ "$cache_file" ;; #(
2844 *)
2845 mv -f confcache "$cache_file" ;;
2846 esac
2847 fi
2848 fi
2849 else
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2851$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2852 fi
2853fi
2854rm -f confcache
2855
2856test "x$prefix" = xNONE && prefix=$ac_default_prefix
2857# Let make expand exec_prefix.
2858test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2859
2860# Transform confdefs.h into DEFS.
2861# Protect against shell expansion while executing Makefile rules.
2862# Protect against Makefile macro expansion.
2863#
2864# If the first sed substitution is executed (which looks for macros that
2865# take arguments), then branch to the quote section. Otherwise,
2866# look for a macro that doesn't take arguments.
2867ac_script='
2868:mline
2869/\\$/{
2870 N
2871 s,\\\n,,
2872 b mline
2873}
2874t clear
2875:clear
2876s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2877t quote
2878s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2879t quote
2880b any
2881:quote
2882s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2883s/\[/\\&/g
2884s/\]/\\&/g
2885s/\$/$$/g
2886H
2887:any
2888${
2889 g
2890 s/^\n//
2891 s/\n/ /g
2892 p
2893}
2894'
2895DEFS=`sed -n "$ac_script" confdefs.h`
2896
2897
2898ac_libobjs=
2899ac_ltlibobjs=
2900U=
2901for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2902 # 1. Remove the extension, and $U if already installed.
2903 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2904 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2905 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2906 # will be set to the directory where LIBOBJS objects are built.
2907 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2908 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2909done
2910LIBOBJS=$ac_libobjs
2911
2912LTLIBOBJS=$ac_ltlibobjs
2913
2914
2915
2916: "${CONFIG_STATUS=./config.status}"
2917ac_write_fail=0
2918ac_clean_files_save=$ac_clean_files
2919ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2921$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2922as_write_fail=0
2923cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2924#! $SHELL
2925# Generated by $as_me.
2926# Run this file to recreate the current configuration.
2927# Compiler output produced by configure, useful for debugging
2928# configure, is in config.log if it exists.
2929
2930debug=false
2931ac_cs_recheck=false
2932ac_cs_silent=false
2933
2934SHELL=\${CONFIG_SHELL-$SHELL}
2935export SHELL
2936_ASEOF
2937cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2938## -------------------- ##
2939## M4sh Initialization. ##
2940## -------------------- ##
2941
2942# Be more Bourne compatible
2943DUALCASE=1; export DUALCASE # for MKS sh
2944if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2945 emulate sh
2946 NULLCMD=:
2947 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2948 # is contrary to our usage. Disable this feature.
2949 alias -g '${1+"$@"}'='"$@"'
2950 setopt NO_GLOB_SUBST
2951else
2952 case `(set -o) 2>/dev/null` in #(
2953 *posix*) :
2954 set -o posix ;; #(
2955 *) :
2956 ;;
2957esac
2958fi
2959
2960
2961as_nl='
2962'
2963export as_nl
2964# Printing a long string crashes Solaris 7 /usr/bin/printf.
2965as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2966as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2967as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2968# Prefer a ksh shell builtin over an external printf program on Solaris,
2969# but without wasting forks for bash or zsh.
2970if test -z "$BASH_VERSION$ZSH_VERSION" \
2971 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2972 as_echo='print -r --'
2973 as_echo_n='print -rn --'
2974elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2975 as_echo='printf %s\n'
2976 as_echo_n='printf %s'
2977else
2978 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2979 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2980 as_echo_n='/usr/ucb/echo -n'
2981 else
2982 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2983 as_echo_n_body='eval
2984 arg=$1;
2985 case $arg in #(
2986 *"$as_nl"*)
2987 expr "X$arg" : "X\\(.*\\)$as_nl";
2988 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2989 esac;
2990 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2991 '
2992 export as_echo_n_body
2993 as_echo_n='sh -c $as_echo_n_body as_echo'
2994 fi
2995 export as_echo_body
2996 as_echo='sh -c $as_echo_body as_echo'
2997fi
2998
2999# The user is always right.
3000if test "${PATH_SEPARATOR+set}" != set; then
3001 PATH_SEPARATOR=:
3002 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3003 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3004 PATH_SEPARATOR=';'
3005 }
3006fi
3007
3008
3009# IFS
3010# We need space, tab and new line, in precisely that order. Quoting is
3011# there to prevent editors from complaining about space-tab.
3012# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3013# splitting by setting IFS to empty value.)
3014IFS=" "" $as_nl"
3015
3016# Find who we are. Look in the path if we contain no directory separator.
3017as_myself=
3018case $0 in #((
3019 *[\\/]* ) as_myself=$0 ;;
3020 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3026 done
3027IFS=$as_save_IFS
3028
3029 ;;
3030esac
3031# We did not find ourselves, most probably we were run as `sh COMMAND'
3032# in which case we are not to be found in the path.
3033if test "x$as_myself" = x; then
3034 as_myself=$0
3035fi
3036if test ! -f "$as_myself"; then
3037 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3038 exit 1
3039fi
3040
3041# Unset variables that we do not need and which cause bugs (e.g. in
3042# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3043# suppresses any "Segmentation fault" message there. '((' could
3044# trigger a bug in pdksh 5.2.14.
3045for as_var in BASH_ENV ENV MAIL MAILPATH
3046do eval test x\${$as_var+set} = xset \
3047 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3048done
3049PS1='$ '
3050PS2='> '
3051PS4='+ '
3052
3053# NLS nuisances.
3054LC_ALL=C
3055export LC_ALL
3056LANGUAGE=C
3057export LANGUAGE
3058
3059# CDPATH.
3060(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3061
3062
3063# as_fn_error STATUS ERROR [LINENO LOG_FD]
3064# ----------------------------------------
3065# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3066# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3067# script with STATUS, using 1 if that was 0.
3068as_fn_error ()
3069{
3070 as_status=$1; test $as_status -eq 0 && as_status=1
3071 if test "$4"; then
3072 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3073 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3074 fi
3075 $as_echo "$as_me: error: $2" >&2
3076 as_fn_exit $as_status
3077} # as_fn_error
3078
3079
3080# as_fn_set_status STATUS
3081# -----------------------
3082# Set $? to STATUS, without forking.
3083as_fn_set_status ()
3084{
3085 return $1
3086} # as_fn_set_status
3087
3088# as_fn_exit STATUS
3089# -----------------
3090# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3091as_fn_exit ()
3092{
3093 set +e
3094 as_fn_set_status $1
3095 exit $1
3096} # as_fn_exit
3097
3098# as_fn_unset VAR
3099# ---------------
3100# Portably unset VAR.
3101as_fn_unset ()
3102{
3103 { eval $1=; unset $1;}
3104}
3105as_unset=as_fn_unset
3106# as_fn_append VAR VALUE
3107# ----------------------
3108# Append the text in VALUE to the end of the definition contained in VAR. Take
3109# advantage of any shell optimizations that allow amortized linear growth over
3110# repeated appends, instead of the typical quadratic growth present in naive
3111# implementations.
3112if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3113 eval 'as_fn_append ()
3114 {
3115 eval $1+=\$2
3116 }'
3117else
3118 as_fn_append ()
3119 {
3120 eval $1=\$$1\$2
3121 }
3122fi # as_fn_append
3123
3124# as_fn_arith ARG...
3125# ------------------
3126# Perform arithmetic evaluation on the ARGs, and store the result in the
3127# global $as_val. Take advantage of shells that can avoid forks. The arguments
3128# must be portable across $(()) and expr.
3129if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3130 eval 'as_fn_arith ()
3131 {
3132 as_val=$(( $* ))
3133 }'
3134else
3135 as_fn_arith ()
3136 {
3137 as_val=`expr "$@" || test $? -eq 1`
3138 }
3139fi # as_fn_arith
3140
3141
3142if expr a : '\(a\)' >/dev/null 2>&1 &&
3143 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3144 as_expr=expr
3145else
3146 as_expr=false
3147fi
3148
3149if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3150 as_basename=basename
3151else
3152 as_basename=false
3153fi
3154
3155if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3156 as_dirname=dirname
3157else
3158 as_dirname=false
3159fi
3160
3161as_me=`$as_basename -- "$0" ||
3162$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3163 X"$0" : 'X\(//\)$' \| \
3164 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3165$as_echo X/"$0" |
3166 sed '/^.*\/\([^/][^/]*\)\/*$/{
3167 s//\1/
3168 q
3169 }
3170 /^X\/\(\/\/\)$/{
3171 s//\1/
3172 q
3173 }
3174 /^X\/\(\/\).*/{
3175 s//\1/
3176 q
3177 }
3178 s/.*/./; q'`
3179
3180# Avoid depending upon Character Ranges.
3181as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3182as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3183as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3184as_cr_digits='0123456789'
3185as_cr_alnum=$as_cr_Letters$as_cr_digits
3186
3187ECHO_C= ECHO_N= ECHO_T=
3188case `echo -n x` in #(((((
3189-n*)
3190 case `echo 'xy\c'` in
3191 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3192 xy) ECHO_C='\c';;
3193 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3194 ECHO_T=' ';;
3195 esac;;
3196*)
3197 ECHO_N='-n';;
3198esac
3199
3200rm -f conf$$ conf$$.exe conf$$.file
3201if test -d conf$$.dir; then
3202 rm -f conf$$.dir/conf$$.file
3203else
3204 rm -f conf$$.dir
3205 mkdir conf$$.dir 2>/dev/null
3206fi
3207if (echo >conf$$.file) 2>/dev/null; then
3208 if ln -s conf$$.file conf$$ 2>/dev/null; then
3209 as_ln_s='ln -s'
3210 # ... but there are two gotchas:
3211 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3212 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3213 # In both cases, we have to default to `cp -pR'.
3214 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3215 as_ln_s='cp -pR'
3216 elif ln conf$$.file conf$$ 2>/dev/null; then
3217 as_ln_s=ln
3218 else
3219 as_ln_s='cp -pR'
3220 fi
3221else
3222 as_ln_s='cp -pR'
3223fi
3224rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3225rmdir conf$$.dir 2>/dev/null
3226
3227
3228# as_fn_mkdir_p
3229# -------------
3230# Create "$as_dir" as a directory, including parents if necessary.
3231as_fn_mkdir_p ()
3232{
3233
3234 case $as_dir in #(
3235 -*) as_dir=./$as_dir;;
3236 esac
3237 test -d "$as_dir" || eval $as_mkdir_p || {
3238 as_dirs=
3239 while :; do
3240 case $as_dir in #(
3241 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3242 *) as_qdir=$as_dir;;
3243 esac
3244 as_dirs="'$as_qdir' $as_dirs"
3245 as_dir=`$as_dirname -- "$as_dir" ||
3246$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3247 X"$as_dir" : 'X\(//\)[^/]' \| \
3248 X"$as_dir" : 'X\(//\)$' \| \
3249 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3250$as_echo X"$as_dir" |
3251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3252 s//\1/
3253 q
3254 }
3255 /^X\(\/\/\)[^/].*/{
3256 s//\1/
3257 q
3258 }
3259 /^X\(\/\/\)$/{
3260 s//\1/
3261 q
3262 }
3263 /^X\(\/\).*/{
3264 s//\1/
3265 q
3266 }
3267 s/.*/./; q'`
3268 test -d "$as_dir" && break
3269 done
3270 test -z "$as_dirs" || eval "mkdir $as_dirs"
3271 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3272
3273
3274} # as_fn_mkdir_p
3275if mkdir -p . 2>/dev/null; then
3276 as_mkdir_p='mkdir -p "$as_dir"'
3277else
3278 test -d ./-p && rmdir ./-p
3279 as_mkdir_p=false
3280fi
3281
3282
3283# as_fn_executable_p FILE
3284# -----------------------
3285# Test if FILE is an executable regular file.
3286as_fn_executable_p ()
3287{
3288 test -f "$1" && test -x "$1"
3289} # as_fn_executable_p
3290as_test_x='test -x'
3291as_executable_p=as_fn_executable_p
3292
3293# Sed expression to map a string onto a valid CPP name.
3294as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3295
3296# Sed expression to map a string onto a valid variable name.
3297as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3298
3299
3300exec 6>&1
3301## ----------------------------------- ##
3302## Main body of $CONFIG_STATUS script. ##
3303## ----------------------------------- ##
3304_ASEOF
3305test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3306
3307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3308# Save the log message, to keep $0 and so on meaningful, and to
3309# report actual input values of CONFIG_FILES etc. instead of their
3310# values after options handling.
3311ac_log="
3312This file was extended by open_pdks $as_me 1.0, which was
3313generated by GNU Autoconf 2.69. Invocation command line was
3314
3315 CONFIG_FILES = $CONFIG_FILES
3316 CONFIG_HEADERS = $CONFIG_HEADERS
3317 CONFIG_LINKS = $CONFIG_LINKS
3318 CONFIG_COMMANDS = $CONFIG_COMMANDS
3319 $ $0 $@
3320
3321on `(hostname || uname -n) 2>/dev/null | sed 1q`
3322"
3323
3324_ACEOF
3325
3326case $ac_config_files in *"
3327"*) set x $ac_config_files; shift; ac_config_files=$*;;
3328esac
3329
3330
3331
3332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3333# Files that config.status was made for.
3334config_files="$ac_config_files"
3335
3336_ACEOF
3337
3338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3339ac_cs_usage="\
3340\`$as_me' instantiates files and other configuration actions
3341from templates according to the current configuration. Unless the files
3342and actions are specified as TAGs, all are instantiated by default.
3343
3344Usage: $0 [OPTION]... [TAG]...
3345
3346 -h, --help print this help, then exit
3347 -V, --version print version number and configuration settings, then exit
3348 --config print configuration, then exit
3349 -q, --quiet, --silent
3350 do not print progress messages
3351 -d, --debug don't remove temporary files
3352 --recheck update $as_me by reconfiguring in the same conditions
3353 --file=FILE[:TEMPLATE]
3354 instantiate the configuration file FILE
3355
3356Configuration files:
3357$config_files
3358
3359Report bugs to <github.com/RTimothyEdwards/open_pdks>."
3360
3361_ACEOF
3362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3363ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3364ac_cs_version="\\
3365open_pdks config.status 1.0
3366configured by $0, generated by GNU Autoconf 2.69,
3367 with options \\"\$ac_cs_config\\"
3368
3369Copyright (C) 2012 Free Software Foundation, Inc.
3370This config.status script is free software; the Free Software Foundation
3371gives unlimited permission to copy, distribute and modify it."
3372
3373ac_pwd='$ac_pwd'
3374srcdir='$srcdir'
3375test -n "\$AWK" || AWK=awk
3376_ACEOF
3377
3378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3379# The default lists apply if the user does not specify any file.
3380ac_need_defaults=:
3381while test $# != 0
3382do
3383 case $1 in
3384 --*=?*)
3385 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3386 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3387 ac_shift=:
3388 ;;
3389 --*=)
3390 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3391 ac_optarg=
3392 ac_shift=:
3393 ;;
3394 *)
3395 ac_option=$1
3396 ac_optarg=$2
3397 ac_shift=shift
3398 ;;
3399 esac
3400
3401 case $ac_option in
3402 # Handling of the options.
3403 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3404 ac_cs_recheck=: ;;
3405 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3406 $as_echo "$ac_cs_version"; exit ;;
3407 --config | --confi | --conf | --con | --co | --c )
3408 $as_echo "$ac_cs_config"; exit ;;
3409 --debug | --debu | --deb | --de | --d | -d )
3410 debug=: ;;
3411 --file | --fil | --fi | --f )
3412 $ac_shift
3413 case $ac_optarg in
3414 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3415 '') as_fn_error $? "missing file argument" ;;
3416 esac
3417 as_fn_append CONFIG_FILES " '$ac_optarg'"
3418 ac_need_defaults=false;;
3419 --he | --h | --help | --hel | -h )
3420 $as_echo "$ac_cs_usage"; exit ;;
3421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3422 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3423 ac_cs_silent=: ;;
3424
3425 # This is an error.
3426 -*) as_fn_error $? "unrecognized option: \`$1'
3427Try \`$0 --help' for more information." ;;
3428
3429 *) as_fn_append ac_config_targets " $1"
3430 ac_need_defaults=false ;;
3431
3432 esac
3433 shift
3434done
3435
3436ac_configure_extra_args=
3437
3438if $ac_cs_silent; then
3439 exec 6>/dev/null
3440 ac_configure_extra_args="$ac_configure_extra_args --silent"
3441fi
3442
3443_ACEOF
3444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3445if \$ac_cs_recheck; then
3446 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3447 shift
3448 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3449 CONFIG_SHELL='$SHELL'
3450 export CONFIG_SHELL
3451 exec "\$@"
3452fi
3453
3454_ACEOF
3455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3456exec 5>>config.log
3457{
3458 echo
3459 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3460## Running $as_me. ##
3461_ASBOX
3462 $as_echo "$ac_log"
3463} >&5
3464
3465_ACEOF
3466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3467_ACEOF
3468
3469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3470
3471# Handling of arguments.
3472for ac_config_target in $ac_config_targets
3473do
3474 case $ac_config_target in
3475 "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;;
3476
3477 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3478 esac
3479done
3480
3481
3482# If the user did not use the arguments to specify the items to instantiate,
3483# then the envvar interface is used. Set only those that are not.
3484# We use the long form for the default assignment because of an extremely
3485# bizarre bug on SunOS 4.1.3.
3486if $ac_need_defaults; then
3487 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3488fi
3489
3490# Have a temporary directory for convenience. Make it in the build tree
3491# simply because there is no reason against having it here, and in addition,
3492# creating and moving files from /tmp can sometimes cause problems.
3493# Hook for its removal unless debugging.
3494# Note that there is a small window in which the directory will not be cleaned:
3495# after its creation but before its name has been assigned to `$tmp'.
3496$debug ||
3497{
3498 tmp= ac_tmp=
3499 trap 'exit_status=$?
3500 : "${ac_tmp:=$tmp}"
3501 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3502' 0
3503 trap 'as_fn_exit 1' 1 2 13 15
3504}
3505# Create a (secure) tmp directory for tmp files.
3506
3507{
3508 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3509 test -d "$tmp"
3510} ||
3511{
3512 tmp=./conf$$-$RANDOM
3513 (umask 077 && mkdir "$tmp")
3514} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3515ac_tmp=$tmp
3516
3517# Set up the scripts for CONFIG_FILES section.
3518# No need to generate them if there are no CONFIG_FILES.
3519# This happens for instance with `./config.status config.h'.
3520if test -n "$CONFIG_FILES"; then
3521
3522
3523ac_cr=`echo X | tr X '\015'`
3524# On cygwin, bash can eat \r inside `` if the user requested igncr.
3525# But we know of no other shell where ac_cr would be empty at this
3526# point, so we can use a bashism as a fallback.
3527if test "x$ac_cr" = x; then
3528 eval ac_cr=\$\'\\r\'
3529fi
3530ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3531if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3532 ac_cs_awk_cr='\\r'
3533else
3534 ac_cs_awk_cr=$ac_cr
3535fi
3536
3537echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3538_ACEOF
3539
3540
3541{
3542 echo "cat >conf$$subs.awk <<_ACEOF" &&
3543 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3544 echo "_ACEOF"
3545} >conf$$subs.sh ||
3546 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3547ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3548ac_delim='%!_!# '
3549for ac_last_try in false false false false false :; do
3550 . ./conf$$subs.sh ||
3551 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3552
3553 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3554 if test $ac_delim_n = $ac_delim_num; then
3555 break
3556 elif $ac_last_try; then
3557 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3558 else
3559 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3560 fi
3561done
3562rm -f conf$$subs.sh
3563
3564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3565cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3566_ACEOF
3567sed -n '
3568h
3569s/^/S["/; s/!.*/"]=/
3570p
3571g
3572s/^[^!]*!//
3573:repl
3574t repl
3575s/'"$ac_delim"'$//
3576t delim
3577:nl
3578h
3579s/\(.\{148\}\)..*/\1/
3580t more1
3581s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3582p
3583n
3584b repl
3585:more1
3586s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3587p
3588g
3589s/.\{148\}//
3590t nl
3591:delim
3592h
3593s/\(.\{148\}\)..*/\1/
3594t more2
3595s/["\\]/\\&/g; s/^/"/; s/$/"/
3596p
3597b
3598:more2
3599s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3600p
3601g
3602s/.\{148\}//
3603t delim
3604' <conf$$subs.awk | sed '
3605/^[^""]/{
3606 N
3607 s/\n//
3608}
3609' >>$CONFIG_STATUS || ac_write_fail=1
3610rm -f conf$$subs.awk
3611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3612_ACAWK
3613cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3614 for (key in S) S_is_set[key] = 1
3615 FS = ""
3616
3617}
3618{
3619 line = $ 0
3620 nfields = split(line, field, "@")
3621 substed = 0
3622 len = length(field[1])
3623 for (i = 2; i < nfields; i++) {
3624 key = field[i]
3625 keylen = length(key)
3626 if (S_is_set[key]) {
3627 value = S[key]
3628 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3629 len += length(value) + length(field[++i])
3630 substed = 1
3631 } else
3632 len += 1 + keylen
3633 }
3634
3635 print line
3636}
3637
3638_ACAWK
3639_ACEOF
3640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3641if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3642 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3643else
3644 cat
3645fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3646 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3647_ACEOF
3648
3649# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3650# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3651# trailing colons and then remove the whole line if VPATH becomes empty
3652# (actually we leave an empty line to preserve line numbers).
3653if test "x$srcdir" = x.; then
3654 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3655h
3656s///
3657s/^/:/
3658s/[ ]*$/:/
3659s/:\$(srcdir):/:/g
3660s/:\${srcdir}:/:/g
3661s/:@srcdir@:/:/g
3662s/^:*//
3663s/:*$//
3664x
3665s/\(=[ ]*\).*/\1/
3666G
3667s/\n//
3668s/^[^=]*=[ ]*$//
3669}'
3670fi
3671
3672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3673fi # test -n "$CONFIG_FILES"
3674
3675
3676eval set X " :F $CONFIG_FILES "
3677shift
3678for ac_tag
3679do
3680 case $ac_tag in
3681 :[FHLC]) ac_mode=$ac_tag; continue;;
3682 esac
3683 case $ac_mode$ac_tag in
3684 :[FHL]*:*);;
3685 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3686 :[FH]-) ac_tag=-:-;;
3687 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3688 esac
3689 ac_save_IFS=$IFS
3690 IFS=:
3691 set x $ac_tag
3692 IFS=$ac_save_IFS
3693 shift
3694 ac_file=$1
3695 shift
3696
3697 case $ac_mode in
3698 :L) ac_source=$1;;
3699 :[FH])
3700 ac_file_inputs=
3701 for ac_f
3702 do
3703 case $ac_f in
3704 -) ac_f="$ac_tmp/stdin";;
3705 *) # Look for the file first in the build tree, then in the source tree
3706 # (if the path is not absolute). The absolute path cannot be DOS-style,
3707 # because $ac_f cannot contain `:'.
3708 test -f "$ac_f" ||
3709 case $ac_f in
3710 [\\/$]*) false;;
3711 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3712 esac ||
3713 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3714 esac
3715 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3716 as_fn_append ac_file_inputs " '$ac_f'"
3717 done
3718
3719 # Let's still pretend it is `configure' which instantiates (i.e., don't
3720 # use $as_me), people would be surprised to read:
3721 # /* config.h. Generated by config.status. */
3722 configure_input='Generated from '`
3723 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3724 `' by configure.'
3725 if test x"$ac_file" != x-; then
3726 configure_input="$ac_file. $configure_input"
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3728$as_echo "$as_me: creating $ac_file" >&6;}
3729 fi
3730 # Neutralize special characters interpreted by sed in replacement strings.
3731 case $configure_input in #(
3732 *\&* | *\|* | *\\* )
3733 ac_sed_conf_input=`$as_echo "$configure_input" |
3734 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3735 *) ac_sed_conf_input=$configure_input;;
3736 esac
3737
3738 case $ac_tag in
3739 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3741 esac
3742 ;;
3743 esac
3744
3745 ac_dir=`$as_dirname -- "$ac_file" ||
3746$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3747 X"$ac_file" : 'X\(//\)[^/]' \| \
3748 X"$ac_file" : 'X\(//\)$' \| \
3749 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3750$as_echo X"$ac_file" |
3751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3752 s//\1/
3753 q
3754 }
3755 /^X\(\/\/\)[^/].*/{
3756 s//\1/
3757 q
3758 }
3759 /^X\(\/\/\)$/{
3760 s//\1/
3761 q
3762 }
3763 /^X\(\/\).*/{
3764 s//\1/
3765 q
3766 }
3767 s/.*/./; q'`
3768 as_dir="$ac_dir"; as_fn_mkdir_p
3769 ac_builddir=.
3770
3771case "$ac_dir" in
3772.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3773*)
3774 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3775 # A ".." for each directory in $ac_dir_suffix.
3776 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3777 case $ac_top_builddir_sub in
3778 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3779 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3780 esac ;;
3781esac
3782ac_abs_top_builddir=$ac_pwd
3783ac_abs_builddir=$ac_pwd$ac_dir_suffix
3784# for backward compatibility:
3785ac_top_builddir=$ac_top_build_prefix
3786
3787case $srcdir in
3788 .) # We are building in place.
3789 ac_srcdir=.
3790 ac_top_srcdir=$ac_top_builddir_sub
3791 ac_abs_top_srcdir=$ac_pwd ;;
3792 [\\/]* | ?:[\\/]* ) # Absolute name.
3793 ac_srcdir=$srcdir$ac_dir_suffix;
3794 ac_top_srcdir=$srcdir
3795 ac_abs_top_srcdir=$srcdir ;;
3796 *) # Relative name.
3797 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3798 ac_top_srcdir=$ac_top_build_prefix$srcdir
3799 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3800esac
3801ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3802
3803
3804 case $ac_mode in
3805 :F)
3806 #
3807 # CONFIG_FILE
3808 #
3809
3810_ACEOF
3811
3812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3813# If the template does not know about datarootdir, expand it.
3814# FIXME: This hack should be removed a few years after 2.60.
3815ac_datarootdir_hack=; ac_datarootdir_seen=
3816ac_sed_dataroot='
3817/datarootdir/ {
3818 p
3819 q
3820}
3821/@datadir@/p
3822/@docdir@/p
3823/@infodir@/p
3824/@localedir@/p
3825/@mandir@/p'
3826case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3827*datarootdir*) ac_datarootdir_seen=yes;;
3828*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3830$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3831_ACEOF
3832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3833 ac_datarootdir_hack='
3834 s&@datadir@&$datadir&g
3835 s&@docdir@&$docdir&g
3836 s&@infodir@&$infodir&g
3837 s&@localedir@&$localedir&g
3838 s&@mandir@&$mandir&g
3839 s&\\\${datarootdir}&$datarootdir&g' ;;
3840esac
3841_ACEOF
3842
3843# Neutralize VPATH when `$srcdir' = `.'.
3844# Shell code in configure.ac might set extrasub.
3845# FIXME: do we really want to maintain this feature?
3846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3847ac_sed_extra="$ac_vpsub
3848$extrasub
3849_ACEOF
3850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3851:t
3852/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3853s|@configure_input@|$ac_sed_conf_input|;t t
3854s&@top_builddir@&$ac_top_builddir_sub&;t t
3855s&@top_build_prefix@&$ac_top_build_prefix&;t t
3856s&@srcdir@&$ac_srcdir&;t t
3857s&@abs_srcdir@&$ac_abs_srcdir&;t t
3858s&@top_srcdir@&$ac_top_srcdir&;t t
3859s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3860s&@builddir@&$ac_builddir&;t t
3861s&@abs_builddir@&$ac_abs_builddir&;t t
3862s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3863$ac_datarootdir_hack
3864"
3865eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3866 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3867
3868test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3869 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3870 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3871 "$ac_tmp/out"`; test -z "$ac_out"; } &&
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3873which seems to be undefined. Please make sure it is defined" >&5
3874$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3875which seems to be undefined. Please make sure it is defined" >&2;}
3876
3877 rm -f "$ac_tmp/stdin"
3878 case $ac_file in
3879 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3880 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3881 esac \
3882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3883 ;;
3884
3885
3886
3887 esac
3888
3889done # for ac_tag
3890
3891
3892as_fn_exit 0
3893_ACEOF
3894ac_clean_files=$ac_clean_files_save
3895
3896test $ac_write_fail = 0 ||
3897 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3898
3899
3900# configure is writing to config.log, and then calls config.status.
3901# config.status does its own redirection, appending to config.log.
3902# Unfortunately, on DOS this fails, as config.log is still kept open
3903# by configure, so config.status won't be able to write to it; its
3904# output is simply discarded. So we exec the FD to /dev/null,
3905# effectively closing config.log, so it can be properly (re)opened and
3906# appended to by config.status. When coming back to configure, we
3907# need to make the FD available again.
3908if test "$no_create" != yes; then
3909 ac_cs_success=:
3910 ac_config_status_args=
3911 test "$silent" = yes &&
3912 ac_config_status_args="$ac_config_status_args --quiet"
3913 exec 5>/dev/null
3914 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3915 exec 5>>config.log
3916 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3917 # would make configure fail if this is the last instruction.
3918 $ac_cs_success || as_fn_exit 1
3919fi
3920if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3922$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3923fi
3924
3925
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Build configured successfully" >&5
3927$as_echo "Build configured successfully" >&6; }